std/brotli: WIP encoder qualities 2 to 9 (EncodeData, hashers, greedy metablocks)

This commit is contained in:
Claude committed 2026-10-27 00:58:17 +00:00
1 parent 88c32bc668
commit 09d4b23d09
12 files changed
+24450 -161

No files matched your search

+4572
View File
@@ -556,3 +556,4575 @@ pri const HUFFMAN_BIT_LENGTH_HUFFMAN_CODE_SYMBOLS : roarray[6] base.u64[..= 15]
pri const HUFFMAN_BIT_LENGTH_HUFFMAN_CODE_BIT_LENGTHS : roarray[6] base.u32[..= 4] = [
2, 4, 3, 2, 2, 4,
]
// From enc/dictionary_hash_inc.h kStaticDictionaryHashWords.
pri const STATIC_DICTIONARY_HASH_WORDS : roarray[32768] base.u16 = [
1002, 0, 0, 0, 0, 0, 0, 0, 0, 683, 0, 0,
0, 0, 0, 0, 0, 1265, 0, 0, 0, 0, 0, 1431,
0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 155,
8, 741, 0, 624, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 66, 503, 0, 0, 0, 451, 0, 0,
0, 0, 0, 0, 0, 835, 70, 0, 0, 539, 0, 0,
0, 0, 0, 0, 0, 0, 0, 113, 0, 0, 0, 0,
718, 0, 0, 0, 0, 0, 0, 520, 0, 1070, 0, 0,
0, 0, 0, 1515, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 78, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 610, 0, 0, 750, 0, 0, 0, 307,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 964, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 999, 0, 0, 0, 0, 0, 0, 0, 0, 645, 75,
0, 649, 52, 282, 0, 200, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1621, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 211, 225, 0, 0, 687, 718, 0, 0,
110, 0, 58, 0, 0, 0, 0, 0, 0, 345, 0, 0,
301, 0, 0, 0, 203, 0, 0, 1154, 674, 1949, 0, 0,
0, 0, 0, 0, 0, 0, 0, 259, 0, 0, 0, 0,
0, 0, 0, 1275, 0, 0, 0, 1231, 254, 0, 0, 0,
0, 0, 0, 0, 277, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 248, 0, 0, 800, 0, 0, 0, 29, 116, 100, 490,
0, 0, 0, 0, 0, 1641, 0, 543, 0, 0, 0, 0,
41, 181, 0, 657, 0, 0, 202, 25, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 423, 0, 0, 0, 113, 0,
0, 0, 927, 963, 0, 976, 0, 206, 0, 0, 0, 0,
0, 0, 0, 0, 0, 2002, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 696, 0, 1170, 0, 0, 0, 0,
226, 13, 0, 769, 678, 551, 0, 0, 0, 0, 0, 0,
57, 0, 0, 0, 10, 188, 0, 0, 0, 624, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1941, 130, 0, 0, 0,
0, 378, 269, 0, 0, 528, 0, 1146, 0, 0, 0, 1105,
0, 1616, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 656, 0, 1940, 0, 0, 0, 0,
0, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 457, 342, 810, 0, 0, 0, 0, 620, 0, 0, 0,
0, 0, 0, 0, 967, 95, 447, 406, 0, 0, 0, 477,
0, 1268, 944, 1941, 0, 0, 0, 629, 0, 0, 0, 0,
0, 375, 0, 0, 0, 1636, 0, 0, 0, 0, 774, 0,
1, 1034, 0, 0, 0, 0, 0, 824, 0, 0, 0, 0,
0, 118, 0, 0, 560, 296, 0, 0, 0, 0, 0, 0,
0, 0, 1009, 894, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1474, 366, 0, 0, 0, 0, 0,
0, 0, 0, 0, 79, 1723, 0, 0, 200, 0, 0, 0,
0, 0, 0, 0, 0, 1759, 372, 0, 16, 0, 943, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 258, 0, 0, 900, 1839, 707, 30,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 2004, 0, 0, 10, 115,
0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
520, 1, 0, 738, 98, 482, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 701, 2, 0, 0, 0, 0, 0, 0,
0, 0, 557, 0, 0, 0, 0, 0, 0, 0, 0, 0,
347, 0, 0, 0, 0, 572, 0, 0, 0, 0, 0, 0,
0, 0, 0, 832, 0, 0, 797, 809, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 528, 0, 0, 0, 861,
0, 0, 294, 0, 0, 0, 109, 0, 0, 0, 0, 0,
0, 0, 0, 1187, 290, 266, 0, 0, 0, 0, 49, 50,
748, 0, 0, 466, 399, 0, 0, 0, 0, 0, 0, 0,
378, 0, 519, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 667, 351, 902, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
180, 0, 0, 869, 0, 0, 0, 0, 0, 0, 0, 260,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 523, 36,
0, 0, 587, 510, 809, 29, 260, 0, 0, 0, 0, 0,
0, 0, 0, 570, 0, 565, 0, 1464, 0, 0, 0, 0,
0, 0, 10, 0, 0, 787, 399, 380, 200, 0, 0, 0,
0, 516, 0, 844, 887, 0, 0, 0, 0, 0, 0, 0,
44, 0, 0, 0, 305, 1655, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 786, 10, 0, 0,
0, 0, 0, 0, 0, 0, 0, 2031, 0, 0, 0, 0,
0, 684, 0, 0, 0, 0, 0, 1480, 0, 0, 0, 27,
0, 0, 0, 395, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 813,
511, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 56, 0, 0, 0, 206, 496, 0, 0,
0, 0, 0, 909, 0, 891, 0, 0, 0, 0, 0, 0,
0, 0, 0, 687, 0, 0, 0, 1342, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 160, 41, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1718, 778, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1610, 0, 0, 0, 0,
0, 115, 0, 0, 0, 0, 314, 294, 0, 0, 0, 983,
178, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 848, 1796,
0, 0, 0, 0, 0, 0, 221, 0, 687, 1660, 0, 0,
0, 0, 262, 0, 0, 179, 0, 0, 0, 0, 0, 66,
0, 773, 0, 352, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 35, 0, 152, 0,
0, 1197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 560, 0, 0, 564, 0, 0, 0, 797, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 556, 0, 819, 0, 0, 0, 0, 0, 0, 0, 0,
719, 544, 637, 5, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 101, 0, 1441, 0, 0, 0, 893, 0, 0,
0, 0, 0, 0, 0, 0, 0, 238, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1296,
0, 0, 969, 1729, 314, 60, 0, 0, 0, 0, 0, 1144,
0, 1147, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
437, 1853, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 828, 0, 176, 0, 0, 0, 0,
0, 0, 434, 39, 0, 0, 0, 0, 0, 159, 0, 0,
0, 902, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 270, 0, 0, 0, 0,
801, 556, 0, 0, 0, 0, 0, 0, 0, 416, 19, 197,
369, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 34,
0, 757, 0, 0, 898, 1553, 0, 721, 0, 0, 0, 0,
1012, 0, 0, 0, 0, 1102, 0, 898, 183, 0, 0, 0,
0, 0, 0, 0, 136, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 247, 277, 0, 0, 0, 435, 0, 0,
0, 0, 0, 1311, 0, 0, 0, 0, 0, 0, 211, 437,
0, 0, 0, 28, 0, 0, 750, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 2012, 0, 702, 0, 808, 0, 0, 0, 0,
739, 166, 0, 0, 0, 0, 0, 0, 719, 170, 500, 0,
0, 0, 0, 0, 0, 0, 0, 1500, 327, 0, 0, 450,
0, 0, 0, 1318, 0, 0, 0, 1602, 0, 0, 331, 754,
0, 0, 0, 0, 0, 1368, 0, 0, 557, 0, 0, 0,
799, 850, 0, 0, 0, 0, 0, 0, 0, 0, 908, 0,
0, 0, 0, 0, 19, 62, 459, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1802, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1397, 0, 0, 0, 0, 120, 238,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 8, 0, 0, 533, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 752, 920, 0, 1048, 0, 153, 0, 0, 391, 0,
0, 1952, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
126, 0, 0, 0, 0, 640, 0, 483, 69, 1616, 0, 0,
0, 0, 0, 734, 0, 0, 0, 0, 0, 0, 480, 0,
495, 0, 472, 0, 0, 0, 0, 0, 0, 0, 0, 874,
229, 0, 0, 0, 0, 948, 0, 0, 0, 0, 0, 0,
0, 0, 1009, 748, 0, 555, 0, 0, 0, 0, 0, 0,
193, 0, 653, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 984, 0, 0, 0, 172, 0, 0, 0, 0, 0, 0,
0, 0, 83, 1568, 0, 0, 384, 0, 0, 0, 0, 0,
0, 0, 164, 880, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 367, 121, 0, 0, 828, 0, 0, 0, 0,
0, 0, 0, 1541, 0, 0, 0, 0, 0, 0, 0, 343,
0, 0, 0, 0, 0, 0, 0, 0, 561, 57, 0, 0,
0, 0, 0, 0, 0, 926, 0, 0, 0, 0, 827, 0,
194, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 896, 1249, 0, 0,
0, 0, 0, 1614, 0, 0, 0, 860, 0, 0, 0, 0,
0, 0, 0, 0, 964, 102, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 899, 0, 569, 0, 0, 0, 0, 795, 2045, 0, 0,
0, 0, 0, 0, 104, 52, 0, 0, 0, 0, 0, 604,
0, 0, 0, 0, 779, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0,
0, 494, 0, 677, 0, 0, 0, 0, 0, 0, 0, 508,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1014, 0, 957,
0, 0, 630, 310, 0, 0, 0, 570, 0, 0, 449, 0,
64, 537, 0, 0, 0, 0, 0, 0, 0, 244, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
702, 1650, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
338, 0, 0, 0, 0, 1279, 0, 0, 0, 0, 0, 0,
0, 896, 0, 0, 178, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 808, 695, 0, 0, 0, 0,
539, 1117, 0, 0, 0, 0, 0, 0, 0, 0, 257, 0,
1003, 0, 0, 0, 1, 448, 0, 516, 0, 0, 960, 0,
125, 4, 0, 1268, 30, 748, 0, 0, 852, 0, 0, 0,
6, 0, 0, 848, 236, 1385, 862, 1811, 0, 0, 0, 0,
698, 803, 0, 0, 0, 0, 0, 0, 0, 610, 992, 0,
0, 878, 0, 1847, 0, 0, 0, 0, 0, 0, 0, 383,
0, 1404, 0, 0, 0, 0, 986, 0, 347, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 592, 572, 0, 1411,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 606,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1829, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 700, 748, 0, 0, 0, 0, 0, 0, 365, 0,
0, 127, 0, 0, 83, 198, 0, 0, 0, 0, 0, 0,
864, 55, 0, 0, 0, 0, 726, 1752, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1066, 0, 764,
0, 0, 0, 0, 683, 0, 550, 309, 0, 0, 874, 1212,
0, 0, 0, 1364, 0, 986, 381, 723, 0, 0, 0, 1573,
0, 0, 0, 0, 0, 1025, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1559, 0, 0, 0, 0, 493, 133, 0, 0, 0, 0,
148, 119, 0, 0, 0, 0, 0, 0, 537, 14, 541, 0,
635, 126, 0, 0, 0, 495, 0, 0, 0, 0, 861, 998,
1009, 0, 0, 0, 0, 0, 0, 0, 359, 368, 0, 0,
0, 0, 304, 1577, 0, 0, 0, 0, 0, 1107, 0, 0,
0, 0, 0, 929, 0, 0, 0, 1142, 0, 0, 0, 0,
289, 175, 0, 432, 0, 219, 0, 0, 0, 0, 0, 785,
0, 0, 595, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 80, 0, 0, 0, 0, 0, 0, 931,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1323, 0, 0, 0, 0,
290, 0, 559, 1751, 127, 0, 0, 0, 934, 1167, 0, 963,
0, 260, 0, 0, 0, 573, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 580, 1689, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1164, 0, 0, 982, 1922, 0, 63,
0, 0, 0, 0, 0, 793, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 67, 790, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 391, 443, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 271, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1140, 0, 0,
0, 0, 340, 300, 0, 897, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 890, 0, 0, 0, 0, 818, 321, 53,
0, 0, 0, 0, 0, 0, 0, 0, 0, 468, 0, 243,
0, 870, 0, 0, 0, 1765, 121, 0, 0, 0, 180, 518,
0, 822, 419, 634, 0, 0, 0, 0, 0, 0, 0, 0,
0, 898, 0, 0, 0, 0, 454, 36, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 806, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1326, 0, 104, 0, 0, 0, 0,
0, 0, 0, 0, 0, 260, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 542, 45, 0, 0, 263, 1516,
42, 0, 0, 0, 0, 0, 468, 0, 1005, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 288, 87, 0, 0, 0, 0, 0, 0, 0, 0,
502, 988, 133, 0, 0, 0, 0, 0, 0, 141, 0, 0,
872, 1842, 0, 0, 0, 0, 0, 0, 0, 0, 261, 619,
0, 0, 0, 0, 189, 246, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 678, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 285, 35, 0, 517, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 540, 214, 667, 0, 74, 0, 0, 125,
0, 0, 0, 0, 0, 761, 131, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 333, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1338, 94, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 449, 0, 646, 103, 86,
641, 2028, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 869, 87, 277, 117, 39, 0, 0,
0, 0, 0, 0, 0, 0, 938, 297, 0, 0, 0, 0,
558, 464, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
731, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1608, 0, 0, 0, 0, 0, 0, 0, 1429,
0, 0, 733, 1010, 0, 0, 338, 1656, 0, 0, 0, 1038,
979, 2010, 0, 0, 0, 0, 0, 0, 0, 1005, 0, 0,
121, 0, 0, 0, 219, 20, 0, 0, 0, 0, 0, 0,
872, 1440, 0, 0, 0, 683, 0, 1070, 0, 0, 522, 0,
0, 0, 0, 439, 669, 0, 0, 0, 0, 0, 0, 0,
0, 1245, 0, 0, 0, 0, 0, 1218, 0, 0, 547, 233,
0, 0, 0, 0, 0, 0, 0, 0, 0, 482, 0, 0,
0, 0, 0, 0, 0, 886, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 795, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 371, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 622, 0, 625,
0, 0, 0, 339, 29, 0, 0, 338, 0, 0, 0, 0,
130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 307, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 2044, 0, 0,
0, 0, 0, 0, 0, 0, 308, 770, 0, 0, 0, 0,
0, 1266, 0, 0, 0, 0, 0, 0, 0, 0, 0, 400,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 690, 739, 0, 0, 0, 0, 0, 0,
0, 990, 0, 0, 0, 1831, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 613, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 763, 0, 878,
0, 0, 0, 977, 0, 100, 0, 0, 0, 0, 0, 0,
0, 0, 0, 463, 0, 0, 0, 0, 623, 318, 0, 0,
296, 463, 137, 0, 0, 454, 0, 0, 0, 1527, 58, 0,
0, 0, 0, 0, 0, 0, 18, 48, 0, 0, 0, 0,
0, 729, 0, 0, 0, 442, 0, 0, 0, 0, 40, 449,
0, 853, 0, 0, 0, 0, 0, 0, 227, 0, 0, 0,
0, 0, 0, 1491, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 161, 55, 0, 450, 0, 1174, 62, 0, 207, 0,
0, 0, 0, 0, 0, 0, 0, 869, 0, 0, 0, 0,
80, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
354, 820, 0, 0, 747, 0, 0, 0, 954, 0, 0, 1073,
0, 556, 0, 0, 0, 692, 0, 191, 0, 804, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 831, 162,
0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 1235,
0, 0, 0, 0, 0, 1234, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0,
149, 0, 0, 0, 902, 204, 0, 0, 833, 0, 287, 366,
0, 0, 0, 0, 0, 0, 992, 2020, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 356, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 784,
0, 0, 567, 630, 0, 0, 0, 539, 0, 0, 27, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 755, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 814, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
987, 0, 0, 255, 761, 194, 0, 1086, 0, 0, 0, 0,
0, 0, 1016, 0, 0, 1396, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 562, 271, 913, 0, 0, 0, 0, 0, 0, 0, 0,
320, 153, 45, 475, 0, 0, 0, 0, 0, 0, 0, 713,
0, 327, 0, 0, 0, 0, 0, 0, 604, 552, 3, 359,
0, 0, 0, 0, 853, 80, 0, 0, 0, 0, 0, 0,
0, 2016, 6, 887, 0, 0, 0, 0, 975, 0, 961, 0,
0, 0, 0, 0, 916, 1891, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 100, 101, 390, 708, 0, 0, 0, 587, 983, 512,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 645,
0, 0, 0, 851, 0, 0, 0, 0, 0, 498, 140, 217,
0, 0, 0, 1448, 0, 0, 0, 0, 0, 0, 0, 0,
0, 905, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 643, 105, 0, 792, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 535, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1748,
0, 0, 0, 0, 0, 754, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 91, 0, 0, 1565, 0, 91,
792, 939, 3, 370, 0, 0, 0, 0, 95, 0, 0, 0,
0, 551, 7, 619, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1150, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 671,
0, 0, 0, 0, 0, 888, 368, 149, 0, 0, 105, 1134,
0, 983, 0, 0, 458, 31, 0, 643, 0, 0, 0, 312,
0, 740, 0, 0, 0, 1642, 0, 0, 0, 0, 0, 0,
0, 236, 0, 0, 0, 0, 0, 0, 0, 59, 68, 0,
0, 0, 0, 0, 867, 795, 0, 0, 0, 0, 970, 1977,
0, 0, 0, 0, 0, 0, 0, 1148, 0, 775, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 970, 0,
0, 0, 0, 0, 0, 0, 0, 0, 665, 71, 0, 0,
0, 0, 827, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 479, 0, 0, 0, 0, 0, 0, 0, 0, 99, 607,
0, 0, 0, 0, 0, 0, 0, 1960, 0, 0, 0, 793,
0, 0, 871, 41, 0, 0, 241, 94, 0, 0, 0, 0,
209, 0, 0, 1497, 0, 0, 0, 0, 0, 0, 0, 0,
0, 98, 0, 0, 0, 463, 0, 0, 0, 0, 291, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 984, 0, 0,
0, 0, 0, 205, 0, 0, 0, 0, 0, 0, 205, 42,
0, 801, 0, 0, 0, 0, 0, 635, 0, 0, 533, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 371, 0, 1282, 0, 0, 0, 825, 0, 0, 0, 0,
0, 0, 0, 0, 0, 357, 879, 467, 0, 317, 0, 0,
0, 0, 0, 0, 0, 924, 0, 0, 0, 0, 849, 1795,
0, 0, 0, 0, 895, 1799, 43, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1820, 0, 0, 0, 0, 0, 0,
0, 525, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110,
0, 493, 0, 174, 417, 0, 0, 0, 0, 0, 583, 733,
0, 0, 0, 0, 0, 0, 481, 215, 0, 0, 0, 0,
477, 0, 0, 0, 0, 0, 0, 0, 0, 308, 0, 0,
0, 0, 0, 0, 0, 0, 297, 126, 0, 0, 361, 1551,
0, 0, 0, 0, 0, 0, 871, 1807, 0, 0, 0, 0,
0, 1307, 0, 685, 0, 0, 0, 0, 0, 0, 0, 797,
0, 858, 0, 565, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 434, 252, 826, 0, 0, 0, 0, 0,
0, 791, 0, 0, 0, 0, 509, 231, 178, 601, 0, 0,
0, 0, 0, 0, 0, 0, 43, 1591, 0, 0, 0, 0,
0, 1683, 0, 0, 0, 0, 45, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1120, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
556, 494, 0, 398, 0, 0, 0, 1030, 0, 0, 0, 0,
0, 0, 168, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 973, 0, 642, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1615, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 378, 594, 0, 1093, 0, 679, 112, 0, 0, 0,
0, 1492, 540, 1374, 714, 1486, 0, 0, 0, 0, 825, 1511,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 952, 0, 0, 736, 143, 0, 700, 0, 1540, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1557, 0, 0, 0, 860, 990, 0,
0, 0, 807, 0, 0, 0, 0, 0, 131, 515, 0, 646,
0, 0, 0, 0, 117, 728, 508, 121, 0, 0, 0, 0,
0, 0, 357, 0, 0, 0, 0, 0, 0, 237, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1784, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 713, 348, 1536, 0, 738,
0, 0, 0, 0, 0, 0, 0, 434, 0, 0, 0, 0,
0, 0, 366, 1877, 39, 0, 0, 0, 0, 0, 0, 580,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 873, 0, 0, 0, 0, 171, 0, 625, 550, 107,
343, 943, 0, 0, 0, 0, 0, 0, 0, 768, 0, 0,
0, 0, 0, 0, 0, 799, 0, 0, 0, 894, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1673, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1052, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 272, 0, 441, 0, 0,
3, 9, 0, 0, 0, 1182, 0, 1346, 0, 0, 0, 0,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, 0, 0, 0, 0, 24,
0, 1352, 158, 1530, 0, 0, 718, 130, 280, 1401, 0, 0,
0, 0, 0, 1946, 8, 0, 0, 0, 0, 1607, 0, 0,
0, 0, 0, 0, 882, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 417, 0, 0, 0, 1597, 633, 433, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 18, 234, 0, 0, 0, 0, 0, 0, 0, 0,
680, 1950, 0, 0, 0, 0, 249, 5, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1216, 0, 1773, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 509, 180,
0, 0, 0, 0, 0, 0, 0, 1002, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 931, 0, 0,
0, 0, 0, 0, 0, 0, 747, 943, 0, 1837, 0, 0,
0, 0, 0, 0, 0, 641, 0, 0, 0, 0, 280, 0,
0, 0, 5, 0, 0, 0, 0, 0, 72, 545, 0, 0,
0, 0, 0, 0, 0, 0, 0, 742, 0, 0, 254, 151,
872, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 921, 0, 0, 517, 833, 0, 1680, 0, 0, 436, 251,
584, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
24, 500, 0, 0, 0, 0, 0, 0, 0, 0, 195, 1775,
514, 389, 0, 0, 0, 0, 0, 0, 0, 743, 0, 0,
0, 0, 0, 0, 292, 0, 0, 0, 227, 1283, 774, 1805,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 81,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 913, 1910, 0, 0, 0, 1826, 490, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1162, 700, 30,
0, 0, 0, 721, 839, 0, 0, 0, 617, 0, 0, 0,
0, 0, 0, 0, 0, 0, 169, 428, 0, 0, 0, 0,
0, 1648, 637, 1205, 0, 0, 0, 1596, 0, 0, 4, 266,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 862,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 0,
0, 0, 0, 0, 0, 0, 0, 0, 279, 157, 391, 604,
0, 0, 713, 945, 877, 973, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 859, 567, 628, 1846,
0, 0, 0, 0, 0, 0, 0, 0, 0, 762, 0, 0,
191, 0, 0, 0, 0, 298, 0, 0, 767, 909, 0, 0,
0, 0, 0, 0, 0, 795, 0, 0, 301, 0, 0, 1970,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1236, 0, 0,
0, 0, 0, 0, 644, 369, 15, 0, 160, 71, 0, 0,
0, 0, 0, 1447, 0, 0, 0, 0, 0, 0, 0, 0,
735, 1255, 76, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 474, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
841, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 836,
0, 0, 0, 0, 0, 1622, 0, 0, 735, 0, 0, 0,
0, 1601, 804, 1390, 394, 0, 0, 0, 0, 0, 0, 96,
0, 289, 0, 0, 35, 688, 0, 0, 0, 667, 0, 513,
0, 0, 0, 0, 0, 0, 0, 2034, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 704, 0, 1524, 0, 1078, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 306, 0, 0, 0, 0, 0, 0, 0, 431, 0, 1196,
0, 0, 54, 0, 15, 1448, 0, 1418, 0, 0, 0, 0,
0, 0, 0, 0, 0, 907, 0, 0, 0, 0, 0, 0,
194, 1767, 0, 0, 0, 0, 0, 840, 0, 900, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1436, 0, 0,
0, 0, 642, 1560, 0, 0, 0, 0, 0, 0, 94, 386,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 830, 416,
0, 0, 20, 731, 0, 0, 0, 0, 0, 0, 0, 0,
697, 0, 0, 662, 0, 0, 0, 0, 0, 0, 0, 0,
0, 861, 0, 0, 0, 0, 0, 0, 0, 871, 671, 864,
0, 928, 7, 0, 332, 0, 0, 0, 0, 1055, 0, 0,
0, 0, 0, 0, 986, 0, 0, 0, 0, 0, 44, 76,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300, 0,
0, 0, 0, 0, 0, 0, 175, 518, 831, 1108, 0, 0,
0, 836, 0, 1852, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 843, 1804,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 246, 0, 0, 0, 610, 202, 0, 0,
36, 0, 0, 0, 240, 654, 13, 0, 0, 0, 0, 0,
0, 0, 0, 391, 0, 403, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 75, 0, 366, 815, 0, 0, 631, 0,
0, 0, 0, 0, 0, 0, 0, 345, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 952,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 673,
35, 662, 0, 287, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 5, 34, 0, 0, 0, 0,
0, 0, 0, 0, 151, 0, 427, 0, 0, 382, 0, 0,
0, 329, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 906, 0, 0, 366, 843, 0, 1443, 0, 1372,
992, 0, 36, 123, 0, 649, 0, 0, 0, 0, 0, 767,
0, 1018, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 995, 0, 0, 0, 0,
0, 0, 0, 72, 368, 0, 0, 1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0, 0, 0, 0, 0, 0, 848, 0, 0, 36, 631,
0, 0, 0, 0, 0, 1769, 0, 0, 0, 0, 0, 144,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 369, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 555, 247, 0, 0, 996, 0, 0, 189, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 526, 746, 0, 0,
345, 0, 0, 0, 1017, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 651, 428, 0, 0,
0, 1162, 230, 327, 546, 792, 0, 0, 0, 1203, 0, 0,
0, 0, 0, 0, 0, 0, 0, 672, 189, 0, 0, 0,
0, 0, 0, 99, 0, 0, 0, 298, 0, 0, 0, 0,
0, 0, 555, 397, 0, 0, 0, 0, 0, 1157, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 398, 1523, 0, 366,
0, 0, 787, 0, 0, 0, 282, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 0, 941,
0, 0, 0, 0, 0, 1336, 0, 0, 116, 0, 0, 0,
0, 0, 0, 787, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 170, 160, 0, 1815, 0, 0, 0, 0, 0, 866,
0, 0, 0, 0, 0, 0, 0, 0, 0, 689, 0, 0,
0, 0, 820, 0, 498, 108, 0, 0, 0, 1119, 0, 0,
0, 244, 609, 1005, 0, 581, 0, 0, 0, 0, 0, 895,
0, 0, 0, 1898, 0, 0, 0, 0, 0, 926, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 538,
496, 294, 301, 0, 0, 0, 18, 0, 0, 757, 0, 0,
0, 0, 0, 1263, 0, 820, 0, 722, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 2028, 0, 0, 0, 0, 124, 1875, 0, 0,
0, 881, 0, 0, 0, 1348, 0, 0, 0, 0, 0, 0,
0, 911, 0, 954, 0, 0, 0, 0, 414, 0, 0, 0,
0, 517, 0, 0, 0, 0, 0, 816, 0, 0, 0, 0,
0, 0, 0, 0, 713, 0, 0, 0, 0, 0, 0, 0,
33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 593, 150,
0, 0, 0, 0, 0, 553, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 108, 0, 0, 0, 0, 420, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1777, 0, 0,
55, 493, 0, 0, 81, 0, 321, 980, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 362, 112,
0, 74, 0, 0, 0, 0, 0, 0, 0, 625, 0, 0,
0, 0, 0, 0, 377, 16, 0, 0, 61, 281, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
224, 1031, 0, 0, 0, 0, 0, 0, 51, 0, 0, 0,
0, 0, 0, 0, 211, 309, 15, 125, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
789, 173, 0, 439, 9, 648, 0, 0, 294, 0, 0, 0,
0, 0, 0, 0, 374, 8, 0, 1099, 0, 0, 0, 0,
0, 0, 0, 575, 0, 0, 0, 518, 0, 0, 0, 702,
0, 0, 0, 0, 0, 0, 87, 0, 0, 0, 438, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 464, 122, 0, 0, 0, 1802, 0, 0,
0, 0, 0, 0, 499, 0, 0, 0, 87, 476, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 840, 283, 0, 0, 0, 0, 1620, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 609, 1160,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 600,
323, 372, 0, 0, 0, 0, 471, 722, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
477, 1304, 0, 1774, 0, 0, 88, 0, 438, 12, 0, 0,
0, 0, 0, 0, 0, 0, 671, 997, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 639, 22,
0, 0, 782, 681, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1013, 664, 0, 942, 0, 1349, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 356, 0, 0, 32,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 289,
0, 1975, 109, 450, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 705, 0, 0, 664, 0, 0, 0, 0, 0, 0,
0, 1238, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 960, 1872, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0,
0, 0, 0, 0, 0, 0, 0, 0, 239, 777, 0, 26,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
375, 414, 0, 17, 0, 0, 0, 1350, 0, 955, 0, 0,
0, 0, 0, 0, 0, 0, 887, 960, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 708, 710, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 919, 0, 0, 0, 0, 502, 280, 7, 45, 0, 0,
0, 0, 777, 0, 0, 0, 0, 410, 0, 1110, 0, 0,
0, 0, 0, 0, 414, 341, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 787, 0, 0, 0, 436, 0, 0, 0, 0, 0, 0,
0, 1707, 613, 377, 96, 0, 0,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0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 392, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 655, 562, 395, 0, 0,
0, 501, 1019, 0, 0, 0, 0, 509, 267, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1099, 0, 0, 0, 0, 0, 0, 948, 0, 0, 0,
0, 0, 0, 0, 462, 114, 0, 0, 258, 404, 0, 1717,
0, 0, 0, 0, 82, 1061, 0, 724, 0, 0, 0, 0,
0, 1133, 0, 0, 0, 0, 0, 0, 1021, 841, 0, 1021,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 488, 373,
37, 0, 0, 0, 0, 564, 0, 0, 0, 0, 0, 513,
0, 0, 0, 825, 0, 0, 899, 0, 0, 778, 0, 0,
12, 1417, 0, 1116, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 114, 545, 0, 5, 0, 0,
0, 0, 0, 0, 0, 192, 0, 0, 763, 0, 0, 0,
0, 0, 0, 0, 755, 759, 0, 0, 0, 0, 0, 0,
0, 0, 0, 370, 0, 1237, 0, 0, 0, 0, 0, 0,
298, 87, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0,
0, 814, 991, 0, 757, 57, 0, 0, 0, 0, 0, 0,
0, 0, 0, 540, 0, 0, 0, 0, 608, 0, 0, 0,
0, 0, 0, 0, 0, 1014, 0, 0, 0, 902, 0, 0,
0, 0, 553, 1668, 0, 0, 0, 0, 0, 0, 0, 0,
0, 559, 60, 0, 0, 0, 0, 0, 511, 0, 0, 675,
0, 0, 156, 0, 0, 0, 0, 0, 0, 709, 0, 698,
0, 0, 0, 1745, 0, 0, 0, 0, 0, 0, 0, 0,
0, 714, 0, 0, 0, 0, 0, 0, 0, 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, 0,
0, 0, 248, 43, 0, 369, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 766, 0, 363, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 678, 0, 0,
409, 258, 82, 249, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 32, 393, 0, 788, 0, 0, 0, 1281,
509, 1968, 0, 0, 0, 0, 39, 291, 0, 0, 0, 589,
0, 0, 54, 1059, 0, 0, 0, 0, 0, 0, 824, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1005, 0, 1598,
0, 0, 0, 0, 0, 919, 0, 0, 0, 0, 0, 0,
0, 0, 52, 132, 0, 0, 0, 0, 0, 328, 0, 0,
0, 0, 173, 0, 0, 0, 0, 0, 65, 1411, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 442, 0, 842, 0,
0, 0, 0, 0, 0, 0, 0, 0, 534, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 845, 210,
0, 0, 0, 0, 0, 0, 0, 0, 892, 0, 0, 223,
0, 0, 0, 0, 529, 0, 0, 0, 807, 0, 137, 218,
0, 1444, 0, 0, 0, 0, 0, 332, 661, 0, 0, 0,
0, 0, 0, 0, 76, 1517, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 418, 0, 0, 0, 0, 0, 0,
0, 0, 481, 379, 0, 0, 0, 0, 0, 149, 18, 0,
0, 0, 0, 0, 0, 0, 0, 742, 304, 142, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 799, 925, 195, 51, 0, 0, 0, 0,
688, 0, 0, 0, 0, 697, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1169, 751, 0,
0, 0, 452, 929, 0, 221, 0, 1437, 0, 0, 0, 0,
955, 1251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192,
0, 132, 0, 0, 0, 0, 0, 865, 0, 0, 0, 0,
0, 0, 0, 767, 672, 42, 0, 0, 0, 1050, 0, 0,
0, 0, 0, 0, 0, 0, 368, 44, 0, 0, 0, 0,
0, 0, 0, 570, 29, 0, 0, 0, 0, 0, 0, 227,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 522, 0, 0, 0, 0, 0, 0, 0, 1529,
0, 0, 0, 0, 0, 0, 739, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1667, 0, 0,
0, 0, 0, 0, 132, 511, 0, 138, 208, 1020, 0, 0,
23, 565, 0, 344, 0, 0, 0, 0, 0, 922, 0, 0,
0, 0, 0, 0, 0, 240, 0, 0, 415, 171, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
402, 0, 0, 754, 31, 716, 0, 982, 731, 0, 0, 0,
0, 0, 0, 0, 888, 0, 0, 0, 803, 847, 0, 0,
823, 0, 0, 0, 0, 0, 0, 785, 0, 0, 2, 0,
0, 0, 0, 0, 0, 0, 532, 0, 0, 681, 0, 0,
314, 0, 384, 684, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 649, 447,
0, 1818, 1007, 0, 321, 0, 66, 360, 0, 0, 0, 385,
0, 0, 0, 0, 0, 0, 0, 900, 73, 254, 0, 0,
0, 0, 683, 1959, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 86, 0, 0, 725,
0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 831,
0, 0, 0, 0, 723, 0, 0, 0, 0, 0, 994, 627,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 764, 66,
0, 0, 0, 0, 205, 36, 0, 0, 0, 0, 0, 0,
0, 950, 0, 0, 0, 887, 111, 0, 0, 831, 388, 165,
0, 0, 0, 0, 0, 155, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 780, 755, 0, 0,
0, 0, 898, 146, 0, 0, 0, 0, 0, 0, 0, 45,
7, 0, 0, 0, 0, 0, 0, 0, 0, 607, 0, 0,
0, 0, 0, 0, 65, 0, 0, 0, 0, 0, 0, 0,
0, 0, 88, 0, 0, 0, 0, 0, 621, 600, 0, 367,
0, 0, 0, 0, 0, 0, 0, 561, 0, 559, 0, 585,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 287, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 672, 157, 0, 0, 0,
0, 714, 0, 0, 0, 0, 0, 456, 0, 925, 0, 0,
0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 1473,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
69, 463, 0, 0, 82, 193, 2, 471, 0, 0, 0, 0,
633, 0, 0, 0, 0, 0, 0, 1148, 129, 1392, 542, 803,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
438, 0, 0, 0, 0, 0, 0, 875, 0, 0, 0, 0,
0, 237, 0, 0, 0, 0, 0, 0, 0, 65, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 563, 0, 0, 0, 9, 444, 0, 0,
43, 1260, 0, 0, 0, 0, 0, 0, 971, 0, 0, 699,
0, 0, 0, 0, 0, 1116, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 829, 242, 0, 0, 593, 0, 0, 0, 0,
0, 0, 0, 0, 201, 36, 224, 0, 0, 0, 0, 0,
0, 1430, 0, 1806, 0, 523, 0, 0, 212, 1889, 0, 0,
0, 827, 0, 0, 0, 0, 0, 2043, 136, 242, 0, 0,
0, 0, 0, 0, 284, 148, 10, 0, 0, 0, 0, 0,
0, 1249, 0, 0, 0, 807, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
94, 0, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0,
0, 1510, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
505, 1306, 0, 0, 764, 268, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 384,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1703, 0, 0, 0, 0, 159, 964,
583, 0, 0, 0, 0, 0, 0, 515, 0, 0, 854, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1123,
0, 0, 0, 0, 0, 0, 0, 136, 0, 0, 0, 0,
0, 1782, 0, 0, 44, 1287, 0, 0, 0, 0, 0, 732,
0, 0, 0, 0, 313, 679, 0, 0, 316, 0, 0, 0,
0, 595, 0, 0, 0, 0, 0, 0, 753, 147, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 137, 0, 0, 0, 0, 414, 0, 1762,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 599,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1749, 0, 0,
0, 1627, 0, 488, 0, 0, 0, 0, 0, 83, 0, 0,
0, 0, 676, 0, 0, 1639, 0, 0, 0, 0, 0, 0,
0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 97, 0,
14, 1085, 0, 0, 0, 0, 0, 0, 781, 388, 0, 849,
59, 229, 0, 0, 0, 0, 0, 1115, 0, 0, 0, 0,
108, 0, 0, 0, 0, 700, 0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0, 0, 0, 0,
0, 0, 0, 829, 0, 0, 0, 1445, 0, 0, 0, 486,
0, 0, 0, 0, 2, 1635, 0, 0, 0, 0, 558, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1461, 0, 0,
0, 0, 0, 599, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1376, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 93, 0, 0, 0,
0, 0, 0, 447, 0, 0, 66, 1432, 0, 0, 0, 0,
0, 0, 307, 0, 413, 609, 0, 0, 0, 930, 0, 0,
0, 0, 21, 939, 0, 0, 0, 0, 0, 962, 4, 651,
0, 0, 0, 0, 15, 579, 0, 0, 0, 0, 0, 597,
0, 0, 0, 0, 0, 981, 0, 0, 0, 545, 0, 0,
0, 0, 0, 0, 0, 1558, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 800, 17, 0, 0,
17, 0, 907, 0, 0, 0, 110, 0, 0, 0, 53, 458,
0, 1983, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
443, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
924, 1844, 0, 1232, 0, 0, 0, 0, 70, 519, 0, 993,
0, 0, 0, 0, 0, 0, 14, 530, 0, 907, 0, 0,
0, 0, 0, 733, 0, 0, 0, 0, 0, 0, 0, 0,
55, 0, 188, 531, 56, 0, 0, 1693, 0, 0, 0, 0,
0, 0, 0, 0, 441, 0, 192, 928, 0, 0, 0, 0,
0, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1525, 0, 259,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 512, 185, 0, 464, 1603,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1113,
284, 720, 0, 0, 722, 0, 0, 0, 0, 0, 13, 0,
0, 0, 0, 0, 0, 0, 4, 289, 43, 0, 0, 0,
0, 0, 0, 1694, 0, 0, 0, 0, 193, 0, 0, 0,
0, 409, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 308, 0, 0, 1863, 0, 0, 0, 0, 0, 0,
0, 0, 0, 790, 0, 0, 745, 1002, 0, 0, 0, 0,
0, 0, 0, 0, 0, 289, 68, 477, 13, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 609, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 367, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 528, 0, 0, 0, 0, 0, 0, 0, 0,
0, 694, 58, 548, 0, 0, 0, 0, 0, 0, 687, 0,
0, 0, 0, 1749, 0, 0, 0, 0, 0, 0, 0, 0,
1004, 661, 0, 0, 0, 0, 0, 0, 445, 0, 0, 0,
74, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 834, 0, 0, 189, 1672,
0, 0, 0, 0, 0, 0, 0, 1548, 192, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 751,
0, 78, 0, 0, 0, 0, 0, 0, 544, 1602, 105, 473,
0, 0, 0, 0, 0, 0, 156, 1949, 0, 1779, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 763, 0, 0,
0, 0, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 883, 0, 0, 0, 0, 0, 0,
0, 488, 0, 617, 0, 0, 50, 0, 694, 1518, 785, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 546, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 1016,
0, 0, 0, 577, 0, 0, 0, 0, 0, 0, 184, 935,
114, 720, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0, 0, 0, 95, 14, 0, 969,
0, 0, 0, 0, 0, 0, 0, 727, 0, 1021, 0, 0,
0, 0, 0, 1190, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 153, 0, 0, 0, 0, 0, 0,
0, 0, 0, 798, 0, 587, 0, 0, 695, 42, 0, 1929,
141, 957, 0, 465, 7, 908, 0, 0, 450, 148, 0, 0,
0, 1166, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 253, 0, 1003, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 46, 0, 0, 879, 0, 806, 0, 1868,
0, 0, 0, 0, 0, 1846, 0, 0, 0, 730, 0, 0,
0, 0, 0, 0, 0, 965, 0, 0, 0, 0, 506, 0,
0, 0, 10, 0, 0, 0, 22, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 960, 296, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 587, 0, 0,
0, 0, 20, 0, 0, 0, 32, 982, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 941, 0, 0, 0, 0, 435,
0, 0, 0, 0, 0, 0, 71, 419, 0, 0, 0, 0,
0, 0, 688, 740, 94, 345, 0, 0, 679, 582, 0, 0,
0, 0, 0, 0, 0, 945, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 539, 0, 684, 1993, 0, 0,
0, 659, 0, 583, 0, 803, 0, 704, 0, 0, 0, 0,
0, 198, 181, 347, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 481, 405, 203, 0, 0,
99, 826, 0, 0, 0, 0, 0, 0, 0, 492, 0, 408,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0,
0, 0, 0, 665, 349, 137, 0, 0, 0, 0, 612, 1270,
0, 0, 0, 0, 0, 371, 0, 0, 0, 826, 0, 0,
0, 0, 21, 1535, 858, 374, 0, 0, 0, 0, 0, 0,
311, 0, 0, 0, 991, 1968, 0, 0, 0, 0, 494, 1647,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 769, 0, 0, 0, 0,
0, 642, 0, 0, 157, 123, 0, 0, 0, 1435, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 79, 0, 0, 0,
0, 0, 0, 1425, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 106, 393, 486, 1690, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 756, 184, 0, 0, 0, 1382,
0, 0, 0, 175, 0, 1493, 0, 1007, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 219, 0, 0, 0, 0,
515, 99, 0, 851, 0, 0, 0, 0, 0, 1278, 0, 0,
0, 0, 0, 0, 0, 1000, 982, 0, 762, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 910, 1819, 0, 0, 0, 0, 0, 0, 906, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1730, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1185, 0, 0,
0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 147, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
650, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 56, 30, 0, 553, 0, 0, 20, 597,
0, 1614, 0, 0, 0, 0, 0, 327, 49, 0, 0, 0,
0, 0, 0, 0, 78, 0, 0, 786, 134, 0, 0, 0,
12, 496, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
42, 204, 0, 614, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 147, 247, 0, 0, 0, 0, 942, 0, 0, 2023,
0, 0, 0, 0, 0, 0, 67, 285, 0, 0, 8, 0,
0,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, 950, 0, 1081, 0, 1595, 0, 0,
0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 47, 684, 0, 0, 0, 0, 0, 0, 1606, 0, 777,
0, 1020, 0, 0, 0, 1094, 0, 0, 0, 0, 0, 0,
0, 350, 0, 0, 0, 0, 0, 0, 242, 1812, 0, 0,
0, 967, 0, 0, 0, 473, 286, 0, 0, 0, 0, 0,
0, 798, 629, 222, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 513, 337,
306, 0, 0, 0, 0, 0, 0, 0, 0, 0, 146, 0,
0, 1646, 0, 0, 0, 0, 0, 465, 0, 0, 0, 525,
0, 0, 0, 0, 0, 0, 299, 165, 0, 0, 0, 0,
0, 0, 0, 1064, 0, 0, 0, 0, 0, 596, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
238, 1741, 0, 1233, 451, 1824, 0, 0, 0, 0, 733, 495,
0, 0, 0, 0, 0, 1204, 0, 0, 0, 559, 341, 0,
224, 21, 0, 0, 0, 0, 0, 0, 0, 0, 97, 1446,
0, 0, 0, 0, 0, 0, 0, 729, 0, 0, 565, 727,
0, 1948, 0, 0, 0, 519, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1193, 0, 0, 0, 0, 0, 0, 790, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 323, 2, 201, 0, 0, 59, 0, 0,
34, 0, 896, 961, 0, 1285, 0, 0, 46, 0, 479, 0,
0, 0, 0, 549, 0, 663, 0, 0, 0, 0, 0, 783,
65, 682, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0,
0, 522, 0, 0, 0, 52, 0, 0, 0, 0, 0, 383,
0, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0,
0, 0, 397, 194, 0, 0, 635, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 975, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 116, 0, 51, 0, 0, 858, 0, 1075,
535, 448, 0, 0, 0, 0, 0, 610, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 267, 673, 319, 94, 92, 0, 551, 0, 0,
218, 1406, 69, 256, 0, 0, 952, 1980, 0, 833, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 0,
0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 352, 634,
0, 0, 0, 0, 0, 618, 0, 0, 0, 0, 0, 0,
73, 339, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 169, 759, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1075, 0, 0, 0, 0,
0, 0, 482, 649, 0, 0, 0, 0, 0, 0, 0, 0,
386, 336, 0, 0, 0, 1035, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 924, 0, 73, 0, 0, 0, 0,
0, 1971, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1344,
0, 501, 0, 0, 0, 0, 0, 0, 0, 0, 46, 799,
0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 0, 0,
0, 0, 0, 770, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 158, 0, 0, 0, 0, 0, 1432,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 0,
0, 2001, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 478, 0, 0, 0, 0, 0, 0, 91, 1461,
211, 602, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1068,
0, 0, 124, 567, 0, 0, 0, 1006, 0, 0, 0, 0,
0, 0, 0, 0, 0, 735, 812, 0, 0, 323, 0, 0,
0, 304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148,
0, 0, 0, 0, 0, 0, 0, 0, 0, 523, 0, 0,
144, 730, 0, 0, 981, 0,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 762, 1292, 0, 0,
0, 1315, 0, 1955, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 210, 131, 0, 0, 0, 0, 797, 0, 38, 0,
11, 488, 0, 936, 0, 441, 0, 0, 0, 0, 0, 595,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 991, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 653, 0, 523, 0, 0, 0, 903, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 0,
0, 0, 0, 0, 0, 0, 0, 0, 432, 0, 0, 314,
0, 0, 0, 0, 232, 1368, 534, 0, 0, 0, 0, 0,
27, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0,
0, 0, 264, 736, 0, 1657, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1117, 0, 127,
0, 0, 0, 1208, 0, 1294, 0, 0, 0, 0, 364, 0,
0, 0, 0, 0, 125, 1334, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 792, 0, 0, 0,
0, 0, 0, 0, 849, 699, 0, 0, 0, 0, 0, 968,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1446, 124, 397, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 641, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 127, 346, 0, 0, 517, 75, 0, 0,
0, 0, 0, 0, 0, 0, 83, 0, 0, 0, 0, 0,
0, 1031, 0, 0, 0, 0, 0, 0, 0, 1470, 0, 954,
0, 0, 345, 304, 410, 0, 0, 0, 0, 734, 0, 0,
0, 0, 0, 1822, 0, 0, 0, 1798, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0,
0, 0, 0, 0, 161, 1865, 69, 0, 0, 0, 0, 0,
0, 922, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 541, 0, 627, 0, 0, 0, 0, 0, 0, 0, 0,
0, 166, 0, 0, 0, 0, 0, 0, 0, 0, 0, 849,
0, 0, 0, 0, 0, 0, 0, 717, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 600, 0,
0, 0, 0, 0, 0, 654, 0, 0, 188, 273, 0, 0,
0, 543, 0, 410, 87, 0, 0, 941, 0, 0, 186, 250,
0, 1785, 0, 0, 0, 0, 0, 1339, 462, 961, 0, 780,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 529, 0, 0, 0, 0, 0, 0,
474, 1276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 24, 948, 0, 0, 0, 0, 657, 753,
0, 0, 0, 0, 941, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 706,
985, 837, 0, 1861, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 292, 933, 0, 0, 0, 0,
0, 0, 0, 0, 0, 767, 0, 0, 0, 0, 0, 0,
0, 641, 0, 0, 0, 1233, 114, 0, 883, 0, 274, 2008,
0, 1794, 285, 0, 0, 571, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 823, 960, 16, 617, 0, 431, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 567, 0, 401, 0,
2, 781, 424, 33, 0, 2006, 0, 0, 274, 0, 0, 1882,
0, 794, 0, 0, 0, 1848, 0, 0, 0, 0, 0, 0,
448, 47, 0, 0, 0, 1199, 0, 0, 0, 0, 0, 0,
0, 0, 417, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 295, 0, 0, 0, 0, 0, 0, 0, 1019, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 620,
0, 0, 0, 0, 464, 0, 0, 0, 0, 208, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 442, 0,
930, 0, 0, 0, 0, 0, 516, 68, 0, 0, 0, 0,
0, 1128, 104, 0, 0, 0, 0, 0, 0, 0, 0, 787,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 491, 0, 0, 0, 0, 0, 0, 711,
0, 0, 9, 0, 101, 441, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 160, 396, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 679, 326, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1128,
0, 0, 0, 0, 0, 737, 0, 1796, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 338, 574, 0, 0,
0, 0, 0, 1096, 491, 405, 0, 0, 0, 0, 0, 1081,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1676, 0, 1207, 0, 0, 0, 0, 0, 0, 969, 354,
0, 0, 0, 0, 598, 0, 297, 0, 0, 0, 0, 0,
0, 0, 0, 1772, 751, 0, 37, 0, 0, 1828, 0, 0,
0, 0, 0, 0, 0, 0, 0, 257, 191, 582, 0, 0,
0, 0, 0, 0, 790, 0, 0, 0, 0, 0, 47, 0,
0, 0, 0, 0, 0, 0, 449, 306, 1011, 0, 0, 0,
0, 0, 299, 0, 0, 0, 0, 0, 0, 837, 0, 0,
0, 0, 0, 0, 10, 329, 0, 0, 0, 0, 0, 1320,
0, 0, 0, 0, 0, 0, 158, 657, 0, 1191, 0, 0,
0, 0, 0, 0, 7, 0, 974, 1939, 0, 1665, 0, 0,
0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 288, 66, 0, 0, 0, 0, 494, 175,
0, 1643, 0, 0, 0, 0, 0, 0, 0, 0, 570, 750,
719, 0, 0, 0, 0, 0, 0, 0, 0, 0,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
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286,
0, 0, 56, 438, 0, 0, 0, 0, 0, 1950, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 738, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
969, 2047, 0, 0, 0, 0, 0, 0, 0, 818, 0, 0,
0, 0, 0, 0, 0, 866, 0, 0, 0, 0, 0, 0,
0, 1467, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 972, 0, 355, 0, 0, 0, 116, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 267, 189, 104, 0, 0, 0, 0, 1613,
0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 886,
0, 86, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 863,
0, 0, 0, 0, 0, 0, 0, 1953, 450, 1773, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 381, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1142, 0, 1189,
0, 0, 0, 663, 0, 0, 0, 0, 0, 0, 0, 846,
0, 0, 528, 0, 393, 378, 0, 0, 0, 0, 0, 0,
325, 899, 680, 1880, 0, 1770, 0, 0, 0, 0, 0, 648,
0, 0, 0, 0, 0, 0, 185, 167, 0, 2046, 0, 0,
0, 0, 0, 0, 249, 1645, 0, 152, 0, 0, 0, 1733,
0, 0, 0, 0, 0, 1006, 0, 0, 0, 0, 0, 420,
0, 0, 0, 832, 0, 0, 0, 0, 0, 351, 0, 0,
0, 0, 6, 40, 0, 0, 60, 0, 0, 0, 0, 1354,
745, 724, 0, 0, 0, 0, 0, 0, 0, 0, 772, 1951,
275, 108, 639, 0, 0, 0, 0, 0, 0, 0, 0, 0,
500, 1758, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1886, 711, 205, 0, 0, 965, 865, 0, 0, 0, 534,
0, 0, 0, 0, 691, 0, 0, 0, 237, 443, 0, 878,
0, 0, 0, 0, 0, 1410, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 995, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 578, 0, 0,
0, 0, 881, 0, 0, 0, 0, 0, 0, 0, 0, 822,
0, 923, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 924, 0, 0,
0, 665, 0, 0, 0, 0, 0, 1901, 0, 0, 0, 0,
0, 950, 498, 93, 0, 0, 0, 1451, 0, 0, 0, 0,
0, 747, 828, 788, 400, 184, 0, 198, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 994, 0, 0, 0, 0,
0, 0, 0, 0, 615, 320, 0, 0, 0, 978, 843, 905,
0, 0, 0, 0, 0, 0, 0, 0, 850, 974, 0, 0,
0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 509, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 0,
0, 1041, 0, 0, 0, 1040, 0, 0, 0, 0, 0, 0,
0, 0, 0, 693, 234, 774, 0, 336, 0, 1399, 22, 0,
805, 802, 777, 167, 789, 0, 0, 1705, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 10, 13, 11, 0, 0,
204, 264, 0, 0, 56, 0, 0, 1917, 0, 470, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1198, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 1015, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 715, 0, 0, 1002, 0,
0, 0, 298, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 867, 0, 0, 724, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 768,
0, 0, 0, 0, 0, 1066, 0, 0, 0, 0, 67, 0,
174, 948, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 764, 0, 0, 0, 0, 75, 137, 0, 756,
0, 0, 0, 0, 0, 0, 1008, 842, 643, 0, 0, 0,
67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
135, 821, 0, 0, 0, 0, 0, 0, 0, 0, 736, 0,
389, 355, 0, 0, 786, 0, 0, 0, 0, 0, 0, 2044,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1030, 0, 0,
0, 1083, 0, 0, 0, 0, 0, 1226, 0, 0, 0, 0,
356, 319, 8, 389, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 474,
0, 0, 0, 427, 0, 413, 0, 730, 0, 0, 0, 0,
0, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 799,
0, 0, 0, 1793, 0, 0, 0, 322, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
89, 290, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 672, 699, 1860, 0, 0, 0, 737, 0, 0, 0, 1612,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 145,
124, 884, 0, 0, 0, 0, 0, 387, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 679, 0, 550, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1305, 0, 0, 0, 0, 0, 0, 0, 576, 0, 0,
0, 0, 0, 0, 0, 686, 0, 607, 0, 0, 37, 0,
0, 0, 0, 0, 0, 0, 0, 0, 101, 1726, 0, 0,
0, 0, 0, 958, 0, 0, 0, 903, 0, 0, 0, 0,
147, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
367, 0, 0, 0, 0, 690, 0, 705, 273, 0, 0, 887,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90,
0, 0, 0, 0, 0, 0, 0, 908, 0, 0, 0, 0,
0, 0, 0, 1261, 0, 0, 497, 1235, 0, 429, 0, 0,
0, 0, 904, 0, 12, 125, 0, 0, 0, 841, 0, 0,
0, 0, 0, 860, 946, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
768, 0, 770, 160, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
271, 0, 0, 0, 0, 0, 0, 0, 719, 0, 699, 581,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 862, 304,
0, 631, 0, 0, 0, 0, 880, 1513, 0, 0, 0, 0,
0, 981, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 434, 0, 0, 0, 0, 0, 550,
0, 0, 476, 930, 824, 553, 0, 0, 452, 0, 151, 0,
0, 0, 0, 0, 0, 772, 0, 292, 135, 0, 0, 0,
0, 0, 0, 0, 504, 0, 0, 1089, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 783, 0, 0, 0, 0,
0, 0, 206, 393, 0, 0, 0, 0, 0, 0, 0, 0,
232, 912, 0, 0, 0, 0, 0, 977, 0, 0, 716, 98,
0, 0, 0, 0, 0, 733, 0, 0, 0, 0, 0, 0,
0, 0, 19, 0, 0, 0, 0, 668, 0, 360, 0, 0,
0, 0, 0, 0, 656, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 9, 726, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 0,
0, 1269, 0, 0, 463, 0, 0, 0, 0, 0, 0, 1454,
0, 1287, 245, 0, 989, 0, 0, 0, 0, 0, 0, 0,
0, 0, 107, 164, 0, 0, 0, 0, 0, 0, 0, 1061,
0, 0, 0, 0, 2, 484, 0, 0, 0, 0, 0, 0,
0, 1127, 0, 0, 0, 0, 0, 0, 0, 460, 0, 0,
0, 0, 0, 932, 0, 0, 0, 0, 0, 0, 0, 588,
625, 0, 0, 0, 0, 76, 92, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 763,
0, 622, 0, 0, 0, 253, 0, 546, 0, 0, 110, 0,
256, 916, 0, 0, 35, 212, 0, 0, 746, 0, 0, 0,
150, 0, 0, 1466, 0, 0, 0, 1299, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1518, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1229, 0, 0, 0, 816,
0, 0, 0, 0, 0, 0, 159, 0, 0, 0, 0, 0,
734, 869, 126, 1716, 0, 0, 0, 0, 0, 0, 202, 232,
0, 0, 0, 0, 212, 0, 0, 0, 0, 0, 111, 1003,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1712,
0, 0, 216, 0, 0, 0, 0, 516, 0, 0, 0, 0,
0, 650, 0, 0, 0, 0, 57, 99, 0, 0, 0, 0,
300, 574, 0, 0, 0, 0, 1023, 0, 0, 302, 0, 1871,
0, 728, 252, 0, 0, 461, 0, 0, 0, 323, 0, 0,
0, 0, 0, 0, 775, 461, 0, 0, 0, 0, 0, 0,
172, 0, 0, 464, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
73, 727, 0, 1023, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 577, 0, 0, 0, 0, 0, 0, 0, 0, 1037,
0, 0, 0, 0, 0, 0, 0, 0, 280, 677, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 799, 0, 0,
0, 0, 159, 0, 446, 1730, 0, 0, 0, 0, 0, 0,
0, 0, 0, 395, 0, 0, 0, 0, 145, 0, 0, 0,
0, 0, 0, 0, 20, 0, 0, 426, 608, 0, 0, 0,
0, 0, 977, 0, 250, 0, 0, 0, 0, 0, 100, 0,
0, 0, 0, 1982, 0, 0, 0, 0, 0, 476, 0, 0,
0, 0, 0, 0, 594, 76, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
447, 0, 0, 0, 0, 526, 0, 0, 14, 1124, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 362, 301,
0, 0, 0, 1743, 0, 178, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 872, 0, 831, 0, 0, 208, 202, 0, 0,
0, 0, 0, 0, 0, 1954, 0, 0, 0, 0, 516, 872,
0, 0, 313, 224, 0, 0, 24, 0, 11, 546, 0, 0,
0, 1937, 242, 241, 46, 0, 0, 0, 830, 1273, 0, 0,
0, 0, 0, 0, 0, 825, 327, 1006, 0, 0, 0, 0,
0, 1580, 516, 366, 0, 0, 0, 0, 0, 1736, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1935, 0, 826,
0, 0, 0, 0, 139, 331, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 288, 0, 916, 0, 0, 0, 0,
0, 1888, 0, 0, 0, 0, 0, 0, 0, 1471, 0, 1570,
0, 394, 0, 0, 0, 0, 0, 0, 0, 1931, 0, 1719,
0, 658, 228, 0, 0, 0, 0, 0, 374, 0, 0, 0,
0, 735, 0, 0, 0, 0, 0, 0, 323, 498, 0, 1063,
0, 0, 0, 0, 155, 0, 0, 0, 0, 0, 0, 0,
0, 906, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1139, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 108, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 616, 902, 0, 0, 0, 0, 0,
692, 0, 0, 0, 0, 0, 0, 823, 0, 0, 0, 305,
0, 0, 0, 0, 0, 0, 0, 681, 0, 0, 0, 0,
0, 214, 1004, 0, 0, 0, 0, 0, 0, 0, 23, 0,
0, 1703, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1443,
0, 0, 19, 714, 0, 0, 0, 0, 64, 737, 0, 0,
345, 1758, 0, 0, 579, 47, 0, 0, 539, 139, 0, 0,
0, 0, 388, 0, 0, 0, 0, 253, 0, 0, 0, 0,
0, 0, 252, 0, 745, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 504, 107, 0, 871, 0, 0, 0, 229,
0, 0, 0, 0, 0, 903, 0, 0, 71, 0, 0, 549,
6, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 980,
865, 705, 0, 0, 0, 161, 0, 0, 0, 0, 143, 1331,
0, 0, 0, 1388, 33, 724, 0, 0, 0, 19, 0, 0,
0, 395, 0, 0, 0, 0, 0, 846, 210, 0, 0, 0,
122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 695, 937, 497,
0, 0, 0, 0, 0, 718, 0, 0, 0, 0, 0, 0,
0, 1581, 0, 0, 0, 0, 0, 0, 161, 49, 0, 0,
0, 0, 0, 0, 0, 0, 0, 597, 0, 0, 0, 1094,
0, 0, 0, 811, 908, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1471, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 42, 1935, 0, 0, 0, 2014, 66, 2007, 0, 0,
586, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 1077,
0, 0, 0, 1221, 0, 0, 62, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1766, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 25, 0, 499, 1388, 0, 0,
97, 10, 0, 0, 0, 0, 0, 481, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 37, 134, 155, 486, 0, 1442,
0, 0, 0, 0, 0, 591, 0, 0, 0, 0, 0, 0,
310, 1173, 0, 0, 0, 0, 409, 1156, 0, 0, 0, 482,
0, 0, 263, 926, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 804, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1265, 0, 415, 0, 348,
0, 0, 0, 1012, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 165, 1803, 0, 0,
0, 0, 0, 0, 0, 408, 0, 0, 0, 0, 0, 0,
257, 1321, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1138,
0, 0, 0, 249, 0, 0, 0, 576, 0, 0, 0, 0,
231, 0, 0, 0, 288, 0, 0, 0, 0, 0, 0, 0,
0, 0, 433, 1487, 569, 1678, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87, 0,
0, 0, 0, 0, 779, 538, 0, 0, 0, 413, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 495, 0, 0, 0,
0, 0, 191, 54, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 530, 567,
0, 0, 0, 0, 0, 1484, 0, 0, 0, 0, 0, 0,
815, 609, 0, 0, 0, 0, 0, 484, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 900, 0, 0, 0, 0, 1335,
0, 1724, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 640, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1831, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 474, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1103, 0, 1504, 655, 1034, 0, 0, 0, 0, 0, 305,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1236, 0, 0,
429, 217, 0, 0, 0, 0, 739, 278, 0, 0, 0, 0,
0, 0, 0, 708, 0, 0, 0, 0, 0, 1840, 233, 0,
0, 0, 0, 0, 0, 0, 0, 2017, 0, 0, 0, 0,
0, 1488, 0, 0, 0, 1590, 0, 0, 0, 0, 0, 1800,
28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0,
36, 0, 22, 1442, 378, 0, 0, 0, 0, 0, 0, 1507,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39, 0,
0, 1054, 725, 1955, 0, 2036, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 896, 1871, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 805, 0, 0, 0, 0, 2046, 0, 0,
0, 0, 17, 712, 0, 617, 55, 320, 271, 0, 0, 0,
0, 0, 0, 0, 0, 0, 445, 0, 184, 103, 0, 0,
0, 0, 0, 0, 0, 0, 659, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 676, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 337, 0, 0, 0,
506, 0, 0, 0, 0, 0, 843, 77, 0, 458, 0, 0,
0, 0, 0, 1420, 382, 109, 142, 330, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 87, 0, 0, 0,
492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1239, 0, 0, 0, 0,
0, 0, 211, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1049, 0, 321,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1985, 0, 0, 122, 0, 0, 234, 0, 0,
0, 1098, 0, 0, 0, 0, 0, 0, 549, 253, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 522, 131, 0, 0, 149, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 507, 0, 0,
0, 0, 811, 630, 0, 0, 0, 343, 0, 0, 0, 0,
0, 448, 591, 455, 0, 1381, 0, 0, 0, 0, 0, 0,
0, 575, 0, 0, 0, 0, 0, 1175, 0, 0, 0, 0,
0, 0, 0, 0, 0, 653, 0, 0, 0, 1761, 0, 1198,
0, 0, 0, 0, 297, 1127, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 678, 0, 0,
164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 0,
45, 0, 0, 0, 0, 0, 121, 0, 0, 0, 0, 0,
0, 0, 0, 125, 0, 0, 0, 1622, 0, 0, 0, 0,
0, 721, 145, 0, 0, 0, 970, 792, 0, 0, 0, 715,
0, 0, 0, 0, 0, 1999, 0, 0, 74, 531, 0, 0,
65, 0, 0, 0, 105, 220, 0, 0, 0, 0, 0, 0,
0, 960, 0, 0, 0, 0, 0, 0, 428, 19, 0, 0,
401, 96, 0, 0, 0, 0, 0, 1595, 116, 0, 1021, 0,
0, 0, 0, 0, 750, 1961, 0,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 0, 0,
0, 1630, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 671, 972, 989, 0, 0, 0, 0, 0, 0,
0, 889, 0, 0, 0, 1382, 0, 0, 0, 0, 0, 0,
0, 775, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
388, 202, 0, 0, 0, 0, 16, 560, 0, 0, 0, 841,
0, 0, 566, 0, 0, 0, 938, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 912, 0, 0, 0, 1361, 0, 0,
0, 0, 0, 0, 618, 236, 0, 1854, 0, 0, 318, 190,
0, 1376, 0, 0, 0, 0, 0, 0, 0, 349, 0, 0,
0, 0, 951, 1972, 0, 0, 0, 0, 0, 0, 344, 0,
0, 0, 0, 0, 0, 0, 0, 850, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 910,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 19, 0, 163, 85, 0, 487, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 145, 0, 83, 0, 0, 1013,
0, 0, 0, 1922, 0, 0, 169, 557, 66, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1193,
82, 0, 352, 454, 57, 0, 0, 1333, 396, 107, 0, 370,
0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0,
0, 0, 0, 1706, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 394, 1204, 0, 0, 0, 0, 0, 1007,
0, 0, 0, 1696, 0, 1519, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 981, 0, 0, 0,
0, 1072, 0, 0, 0, 712, 0, 1629, 0, 0, 0, 0,
0, 0, 0, 728, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1271,
0, 0, 0, 1608, 16, 0, 0, 0, 0, 485, 0, 0,
0, 0, 0, 0, 153, 27, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1991, 0, 0, 0, 0, 0, 0, 0, 0,
52, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0,
819, 0, 0, 0, 0, 0, 917, 0, 0, 0, 0, 784,
0, 0, 0, 0, 135, 0, 0, 0, 0, 0, 454, 0,
0, 0, 0, 0, 0, 0, 0, 0, 852, 1719, 0, 0,
0, 0, 0, 852, 0, 0, 0, 0, 0, 952, 0, 0,
0, 0, 568, 0, 0, 0, 0, 0, 448, 0, 0, 0,
67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1826, 657, 0, 729, 666, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 669,
0, 0, 0, 0, 0, 0, 0, 402, 0, 0, 152, 0,
0, 0, 0, 912, 0, 0, 0, 0, 0, 0, 51, 320,
0, 445, 0, 0, 0, 0, 308, 0, 0, 0, 0, 0,
386, 0, 0, 239, 0, 0, 130, 83, 0, 143, 0, 348,
0, 0, 0, 0, 0, 0, 0, 958, 0, 0, 0, 0,
0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 430, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 7, 213, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 801, 0, 0, 0, 0, 0, 0, 0, 0,
0, 936, 0, 108, 0, 0, 0, 0, 0, 0, 0, 0,
0, 885, 587, 219, 398, 364, 0, 1165, 0, 0, 342, 241,
303, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1454,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 562,
0, 786, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1294, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 493, 216, 0, 0,
0, 0, 219, 341, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 130, 1734, 154, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 701, 604,
0, 0, 879, 0, 195, 666, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1669, 0, 0, 0, 1791, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1228, 0, 0, 0, 0, 0, 623, 0, 0, 0, 0,
0, 0, 0, 798, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 84, 122, 0, 0, 0, 837, 0, 0,
0, 0, 0, 0, 1013, 0, 0, 577, 0, 0, 0, 460,
932, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
31, 131, 0, 0, 0, 605, 0, 0, 0, 1246, 0, 0,
0, 0, 68, 278, 165, 307, 781, 0, 0, 0, 0, 0,
0, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1113, 0, 0,
720, 1953, 203, 0, 0, 0, 0, 0, 0, 0, 425, 326,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 1316,
0, 0, 0, 0, 0, 416, 0, 0, 0, 1300, 0, 847,
0, 0, 662, 358, 0, 0, 0, 0, 839, 1823, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
654, 1522, 0, 0, 0, 0, 0, 0, 163, 0, 0, 0,
0, 0, 314, 978, 0, 0, 0, 601, 0, 0, 0, 0,
0, 946, 434, 0, 0, 0, 402, 411, 0, 0, 0, 0,
0, 0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, 0, 0, 198, 0, 0, 565, 585,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 691, 0, 0, 0, 593, 0, 0, 0, 0, 0, 0,
0, 0, 0, 913, 116, 0, 0, 0, 0, 1360, 0, 0,
0, 802, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
673, 308, 0, 709, 1006, 1895, 0, 228, 0, 0, 0, 1840,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 608, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1573, 0, 2039, 136, 540, 0, 0,
0, 0, 0, 0, 0, 897, 0, 0, 938, 1878, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1469, 0, 999, 0, 299,
0, 0, 0, 0, 0, 0, 0, 578, 0, 0, 0, 0,
0, 456, 0, 0, 0, 1679, 163, 693, 0, 0, 0, 0,
0, 0, 48, 755, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 338, 0, 0, 0, 0, 1091, 0, 0,
0, 0, 695, 0, 0, 1464, 0, 0, 0, 0, 0, 975,
0, 0, 335, 0, 0, 1979, 0, 0, 0, 0, 269, 1566,
630, 396, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1815, 634, 0,
0, 0, 966, 0, 0, 0, 0, 0, 0, 0, 9, 412,
0, 958, 0, 0, 579, 382, 0, 212, 0, 0, 0, 0,
965, 681, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 655, 0, 0, 0, 0, 67, 0,
0, 0, 0, 0, 0, 751, 0, 0, 0, 0, 423, 231,
0, 0, 1016, 300, 0, 0, 0, 0, 100, 237, 0, 0,
0, 1370, 0, 0, 0, 1208, 0, 0, 0, 0, 0, 1219,
129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 199, 0, 0, 427, 0, 0, 0, 0, 949,
665, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 712, 0, 0, 0, 0, 0, 1186, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 295, 312, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 151, 0,
0, 0, 0, 588, 4, 0, 0, 0, 0, 0, 414, 104,
0, 0, 757, 263, 0, 561, 0, 0, 0, 320, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 225, 0, 0,
0, 0, 37, 817, 0, 974, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 2026, 131, 235, 16, 0,
590, 1157, 0, 0, 0, 0, 0, 0, 0, 0, 221, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 140, 390, 0, 0, 0, 0,
0, 0, 0, 1144, 0, 0, 0, 464, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 204, 407, 303, 1218,
0, 0, 0, 0, 5, 325, 0, 0, 0, 0, 12, 800,
0, 1783, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
504, 621, 0, 0, 0, 0, 0, 0, 0, 0, 0, 920,
0, 376, 0, 0, 0, 0, 0, 218, 580, 0, 768, 454,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
676, 0, 0, 0, 0, 0, 0, 164, 0, 0, 0, 0,
0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 120, 285, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
226, 343, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 29, 0, 0, 1812, 0, 0, 8, 0,
0, 0, 21, 1125, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1327, 0, 0, 0, 0, 575, 1598, 0, 0, 0, 0,
0, 0, 0, 0, 0, 895, 0, 0, 0, 959, 0, 0,
0, 0, 0, 1759, 173, 0, 0, 0, 0, 266, 261, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1427, 0, 0,
300, 1033, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 584, 0, 0, 0, 0, 52, 734, 0, 0, 217, 239,
0, 1129, 0, 0, 0, 0, 0, 0, 0, 0, 732, 20,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 418,
0, 0, 0, 613, 0, 0, 0, 0, 0, 0, 0, 0,
0, 632, 0, 0, 85, 984, 0, 0, 0, 0, 909, 694,
7, 1109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 167, 0, 0, 0, 0, 280, 62,
0, 0, 33, 0, 0, 359, 186, 980, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 585, 0, 0, 0, 211,
0, 0, 336, 145, 0, 1130, 0, 873, 0, 0, 840, 263,
0, 0, 0, 0, 0, 0, 0, 0, 0, 916, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 155, 0, 0, 0,
461, 97, 0, 0, 0, 0, 0, 1356, 0, 0, 0, 0,
0, 0, 0, 593, 0, 0, 0, 0, 0, 1392, 0, 0,
0, 0, 126, 0, 0, 0, 0, 1179, 0, 0, 0, 0,
0, 162, 0, 0, 0, 0, 0, 765, 0, 187, 0, 1286,
0, 0, 0, 0, 0, 0, 0, 0, 0, 635, 0, 0,
23, 215, 0, 0, 0, 1306, 0, 0, 97, 716, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 657, 0, 0, 0, 0, 0,
0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 134, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 658, 1082,
0, 0, 0, 0, 0, 2002, 0, 0, 0, 0, 0, 0,
833, 248, 0, 0, 0, 0, 0, 1654, 0, 0, 531, 0,
0, 0, 0, 0, 0, 634, 0, 0, 0, 0, 0, 0,
0, 0, 0, 853, 573, 249, 0, 0, 0, 0, 0, 0,
0, 0, 527, 0, 0, 0, 0, 1419, 0, 0, 0, 0,
0, 0, 20, 49, 0, 0, 0, 992, 0, 0, 0, 728,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
497, 1579, 0, 0, 0, 0, 62, 268, 0, 0, 0, 0,
0, 0, 0, 1201, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 495, 193, 0, 0, 0, 0, 106, 0,
0, 859, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0,
813, 925, 0, 0, 223, 613, 953, 0, 0, 0, 0, 0,
0, 0, 0, 666, 0, 0, 0, 0, 0, 0, 0, 0,
0, 670, 0, 0, 40, 216, 0, 0, 0, 0, 0, 0,
259, 0, 0, 0, 440, 1114, 0, 0, 0, 0, 0, 0,
0, 0, 74, 475, 0, 0, 188, 139, 0, 797, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1572, 0, 0, 0, 0, 39, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1594, 0, 0, 0, 0,
0, 0, 0, 290, 0, 232, 0, 0, 887, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 521, 14, 0, 0, 0, 0, 0, 741,
0, 0, 0, 992, 0, 0, 0, 0, 0, 0, 0, 0,
111, 0, 0, 425, 0, 0, 0, 0, 0, 789, 0, 0,
0, 1593, 0, 1768, 0, 0, 233, 0, 0, 0, 0, 943,
0, 0, 0, 0, 0, 0, 0, 955, 225, 245, 0, 0,
0, 0, 0, 0, 241, 0, 0, 0, 0, 1943, 0, 0,
0, 1284, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 709, 0, 0, 0, 0, 0, 0, 554, 0, 0, 0,
0, 0, 0, 0, 0, 1564, 0, 0, 0, 443, 0, 0,
0, 0, 0, 0, 280, 0, 0, 0, 0, 0, 0, 0,
0, 729, 0, 0, 0, 348, 0, 0, 0, 0, 0, 0,
0, 758, 848, 298, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 829, 1422, 189, 121, 0, 0,
632, 812, 0, 0, 556, 0, 0, 0, 0, 0, 436, 172,
530, 844, 232, 984, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 147, 0, 0, 0, 0, 0, 0, 0, 0, 537,
0, 0, 0, 0, 0, 859, 0, 0, 842, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1291, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1482, 612, 392, 0, 0,
0, 262, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 753, 549, 0, 0, 0, 0, 0, 0, 696, 0, 0,
0, 0, 0, 0, 0, 834, 0, 0, 0, 0, 0, 771,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 921, 0, 0, 0, 674, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 308, 444, 0, 0, 0, 0, 0, 0,
805, 180, 0, 0, 278, 271, 0, 0, 214, 505, 0, 1215,
0, 0, 0, 0, 0, 0, 387, 271, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1645, 42, 92, 0, 459, 0, 0,
330, 1557, 0, 0, 0, 0, 0, 0, 0, 0, 113, 18,
0, 0, 0, 1742, 0, 0, 0, 965, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 0, 0,
65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 973, 0, 0, 0, 0, 0, 328, 0, 0, 588, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1786, 0, 0, 962, 1985, 0, 0, 0, 308, 508, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 588, 0, 0, 0, 0, 0,
0, 614, 793, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1136, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 796, 719, 0, 0,
326, 210, 0, 0, 0, 701, 758, 472, 0, 0, 0, 1947,
278, 1079, 0, 0, 0, 0, 0, 0, 497, 41, 0, 0,
634, 46, 961, 0, 810, 524, 0, 0, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 532, 0, 997,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1301,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1298, 0, 671, 0, 0,
0, 306, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
693, 1823, 0, 0, 0, 759, 0, 0, 0, 0, 0, 1932,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 88, 182, 0, 0, 0, 1964, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 521, 0, 0, 0, 0, 0, 0, 424, 857,
0, 0, 0, 0, 671, 328, 0, 529, 0, 0, 0, 0,
0, 716, 0, 1509, 80, 67, 0, 0, 0, 0, 59, 141,
0, 0, 0, 0, 0, 0, 783, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1498, 0, 0, 0, 0, 343, 430, 803, 1183,
677, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1357, 53, 0, 0, 0, 0, 590, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 329, 0, 0,
0, 0, 0, 0, 0, 469, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 460, 0, 0, 1743, 0, 0, 963, 340,
0, 0, 0, 0, 0, 1603, 0, 0, 250, 0, 0, 0,
0, 0, 646, 218, 0, 1794, 0, 0, 0, 571, 0, 455,
0, 0, 0, 1012, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 597, 161, 0, 349, 0, 524, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 322, 432,
0, 0, 0, 0, 0, 0, 325, 223, 0, 0, 0, 0,
0, 566, 0, 0, 0, 1394, 481, 436, 0, 48, 457, 610,
756, 618, 0, 0, 0, 755, 0, 1217, 0, 0, 0, 0,
0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 544, 492, 107, 414, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1007, 0, 0, 0, 0,
5, 0, 0, 1580, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 673, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1843, 0, 0,
0, 0, 0, 0, 0, 0, 0, 165, 0, 0, 0, 0,
0, 0, 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 0, 0, 0, 0, 0, 0, 80, 1076,
0, 0, 118, 0, 0, 0, 479, 274, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 497, 0, 0, 669, 261,
0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 791,
250, 642, 0, 0, 0, 1429, 939, 949, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 818, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 982, 330, 0, 0, 0, 0,
545, 0, 0, 0, 0, 0, 0, 947, 0, 1188, 0, 0,
0, 0, 0, 904, 0, 0, 0, 0, 0, 1372, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 693, 377, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 695, 0, 0,
713, 386, 0, 0, 0, 0, 128, 1575, 0, 0, 0, 0,
0, 0, 424, 893, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
904, 0, 0, 0, 0, 0, 552, 322, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
28, 1808, 49, 0, 0, 0, 0, 1832, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 421, 0, 0,
442, 415, 0, 0, 289, 0, 0, 0, 0, 0, 206, 110,
0, 0, 0, 0, 0, 205, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 19, 1539, 0, 0, 0, 0,
0, 1340, 0, 1194, 0, 0, 0, 0, 0, 0, 0, 0,
549, 0, 0, 0, 0, 0, 0, 0, 0, 1720, 0, 0,
0, 0, 0, 0, 0, 0, 0, 319, 0, 0, 0, 0,
112, 1180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 967, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1940,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 735, 0, 0, 0, 0, 0,
0, 0, 0, 0, 897, 132, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 38, 838, 0, 0, 0, 379, 218, 8,
660, 1017, 0, 0, 0, 0, 0, 0, 111, 387, 647, 877,
0, 0, 53, 790, 0, 0, 0, 0, 0, 0, 0, 0,
458, 0, 0, 0, 0, 0, 0, 954, 0, 0, 0, 394,
0, 1367, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 882, 0, 0, 0, 0, 0, 0,
0, 1409, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 38, 124, 342, 199, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 724, 628, 0, 0,
0, 0, 804, 266, 0, 0, 0, 0, 0, 208, 0, 79,
0, 0, 0, 0, 0, 0, 0, 0, 741, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 606, 0, 1494, 821, 1553,
0, 0, 135, 405, 0, 0, 178, 100, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 481, 0, 0,
0, 1378, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 791, 33, 1227, 857, 0, 467, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 447, 0, 0, 0, 0, 0, 0, 86, 128, 0, 0,
0, 0, 0, 0, 587, 0, 0, 0, 692, 1018, 0, 195,
0, 0, 0, 0, 0, 0, 0, 1546, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 684, 0, 0, 345, 0,
0, 0, 0, 0, 0, 365, 0, 1683, 0, 0, 472, 0,
433, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 0,
997, 0, 705, 3, 0, 0, 0, 0, 0, 0, 0, 0,
0, 229, 0, 0, 0, 0, 102, 0, 0, 0, 0, 866,
1022, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 0,
115, 0, 0, 0, 0, 933, 0, 0, 0, 0, 0, 0,
0, 702, 0, 0, 0, 0, 0, 0, 0, 1728, 26, 484,
0, 0, 0, 185, 618, 417, 0, 803, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1262, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 633, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 479,
262, 0, 0, 0, 0, 0, 0, 830, 0, 0, 0, 0,
26, 70, 0, 0, 0, 0, 0, 0, 0, 0, 217, 0,
640, 51, 0, 0, 360, 1586, 0, 0, 0, 0, 0, 652,
0, 0, 0, 0, 0, 766, 0, 0, 0, 0, 298, 737,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 655, 222,
906, 0, 0, 1013, 991, 2009, 0, 0, 0, 0, 503, 0,
0, 0, 216, 154, 0, 0, 0, 716, 0, 844, 0, 0,
0, 0, 621, 252, 0, 0, 0, 0, 748, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 103, 0, 2, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 576, 0, 0,
0, 648, 0, 0, 0, 331, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 632, 0, 0, 0, 518, 107,
0, 0, 0, 0, 0, 0, 0, 0, 851, 0, 0, 0,
0, 504, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 7, 883, 0, 0, 0, 0, 0, 0, 0, 922,
0, 0, 0, 0, 0, 0, 0, 0, 91, 993, 0, 0,
0, 0, 0, 0, 200, 131, 10, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 365, 1433, 0, 0,
0, 0, 28, 103, 0, 0, 798, 1013, 0, 0, 0, 0,
0, 0, 0, 0, 39, 1925, 0, 853, 0, 0, 271, 519,
0, 0, 0, 0, 338, 0, 0, 300, 470, 419, 0, 0,
0, 0, 0, 0, 836, 0, 0, 0, 0, 0, 0, 1937,
0, 0, 0, 0, 0, 393, 0, 0, 357, 0, 0, 0,
0, 0, 703, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 387, 0, 0, 0, 0, 0, 0, 75, 708, 453, 1351,
0, 303, 0, 0, 772, 0, 0, 0, 0, 0, 0, 0,
0, 749, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1065, 0, 0, 717, 226, 0, 0, 0, 0,
0, 890, 431, 626, 0, 0, 0, 0, 706, 0, 0, 0,
51, 698, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 828, 0, 0, 17, 0, 0, 0, 0, 1929, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 27, 871, 498, 0, 101, 1793,
0, 0, 0, 0, 0, 0, 435, 0, 0, 0, 0, 0,
966, 0, 129, 1644, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 997, 502, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 823, 0, 1927, 0, 0,
0, 0, 98, 1756, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 8, 0, 160, 1046, 0, 492, 0, 0,
0, 0, 0, 0, 129, 45, 0, 0, 0, 0, 0, 0,
353, 558, 0, 0, 0, 0, 0, 785, 0, 0, 0, 1145,
189, 0, 0, 0, 26, 353, 0, 0, 0, 0, 0, 2024,
0, 0, 0, 606, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 32, 855, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2011,
0, 0, 5, 4, 0, 0, 461, 764, 0, 0, 0, 1449,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1445, 0, 0, 0, 1168, 0, 0, 0, 233,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 255, 0, 0, 216, 0, 0, 0,
286, 0, 0, 0, 3, 0, 0, 0, 723, 536, 0, 0,
0, 0, 0, 285, 0, 0, 0, 560, 0, 0, 0, 0,
0, 690, 0, 0, 0, 0, 0, 1246, 0, 0, 63, 0,
33, 0, 0, 0, 0, 0, 520, 1862, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 630, 0, 0, 0,
0, 554, 0, 0, 0, 0, 0, 1001, 0, 0, 0, 0,
0, 446, 0, 0, 0, 0, 0, 0, 0, 1313, 0, 0,
837, 636, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0,
0, 0, 0, 868, 0, 0, 0, 0, 1010, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1231, 0, 304, 0, 506,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0,
93, 1408, 794, 843, 704, 0, 285, 114, 485, 898, 145, 0,
19, 2035, 0, 0, 0, 1933, 0, 0, 0, 0, 0, 0,
0, 1728, 0, 0, 0, 0, 0, 0, 0, 0, 746, 0,
0, 0, 0, 0, 0, 0, 995, 1964, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1550, 0, 874, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1018, 0, 0, 0, 814,
126, 0, 0, 1264, 0, 0, 814, 955, 0, 0, 0, 0,
0, 0, 0, 981, 0, 0, 0, 0, 0, 0, 0, 0,
915, 56, 0, 0, 100, 0, 0, 0, 0, 0, 0, 0,
0, 0, 638, 0, 0, 0, 0, 738, 0, 0, 0, 0,
0, 0, 0, 0, 0, 758, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1112,
0, 0, 214, 0, 0, 0, 133, 0, 196, 168, 0, 0,
0, 0, 0, 1152, 0, 1245, 0, 0, 538, 169, 871, 1816,
0, 0, 413, 133, 0, 0, 0, 978, 0, 0, 43, 93,
371, 0, 0, 0, 0, 0, 0, 526, 25, 0, 754, 335,
0, 0, 0, 0, 182, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 39, 601, 0, 0, 0, 0, 0, 0,
0, 181, 370, 0, 0, 1652, 358, 0, 0, 0, 0, 0,
0, 0, 0, 0, 176, 286, 0, 788, 0, 0, 0, 0,
0, 1223, 780, 254, 1003, 896, 0, 0, 0, 1447, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 744, 0, 0, 0, 0, 0, 126, 0,
41, 788, 0, 0, 0, 629, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 293, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 420, 37, 1900, 0, 0, 0, 0,
542, 1570, 957, 0, 0, 0, 0, 0, 0, 0, 373, 31,
0, 0, 0, 0, 125, 325, 0, 0, 0, 0, 0, 0,
323, 0, 0, 1547, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1216, 0, 0, 0, 0, 0, 0,
198, 1905, 629, 15, 0, 0, 0, 0, 0, 0, 20, 75,
543, 1353, 0, 0, 0, 533, 0, 0, 6, 0, 0, 0,
0, 0, 0, 538, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 338, 0, 0, 0, 0, 11, 0, 0,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0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 410,
0, 976, 0, 0, 0, 0, 0, 703, 0, 0, 0, 0,
0, 0, 187, 322, 0, 0, 0, 227, 0, 0, 0, 0,
560, 0, 31, 1395, 0, 0, 0, 0, 0, 466, 0, 0,
0, 0, 643, 167, 0, 0, 0, 1428, 0, 412, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1118, 562, 0, 0, 0,
0, 0, 256, 0, 0, 0, 0, 0, 0, 1771, 0, 0,
0, 0, 0, 1190, 132, 0, 66, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 317, 0, 0, 0, 63, 0, 0,
0, 0, 0, 0, 0, 1475, 0, 0, 0, 0, 0, 0,
0, 288, 0, 0, 0, 0, 608, 0, 0, 0, 0, 0,
0, 0, 0, 1225, 0, 1189, 0, 0, 0, 0, 0, 0,
0, 1468, 0, 0, 0, 0, 0, 689, 120, 0, 0, 0,
0, 0, 0, 0, 1, 0, 329, 0, 0, 0, 0, 226,
0, 0, 0, 0, 0, 1855, 0, 0, 461, 0, 0, 0,
0, 1346, 0, 0, 0, 0, 0, 85, 0, 0, 299, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1171, 0, 0, 0, 980, 0, 0, 0, 0, 0, 0,
0, 0, 637, 279, 0, 0, 0, 0, 0, 293, 0, 0,
0, 0, 528, 17, 0, 0, 0, 0, 5, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0,
0, 0, 0, 0, 0, 0, 601, 0, 0, 0, 0, 0,
0, 779, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1322, 737, 752, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 412, 192, 80, 0, 0,
8, 1470, 0, 0, 0, 0, 0, 0, 0, 0, 0, 873,
0, 0, 0, 0, 0, 835, 0, 0, 0, 0, 256, 38,
986, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 257,
278, 911, 0, 0, 0, 0, 0, 0, 0, 0, 749, 151,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
989, 0, 0, 990, 0, 0, 90, 194, 0, 0, 0, 0,
0, 425, 0, 0, 0, 0, 0, 774, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 646, 827, 752, 0, 0, 0,
662, 0, 22, 21, 0, 0, 0, 0, 0, 0, 95, 239,
0, 0, 0, 431, 0, 0, 0, 0, 0, 874, 0, 0,
265, 65, 0, 0, 0, 1350, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1887, 0, 0, 0, 0, 0, 0, 0, 809, 0, 696,
0, 1074, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 630, 0, 0,
802, 0, 0, 0, 56, 776, 0, 970, 0, 0, 797, 0,
0, 0, 0, 0, 400, 0, 0, 1951, 0, 0, 41, 0,
11, 118, 0, 0, 0, 0, 0, 0, 0, 0, 251, 615,
0, 0, 0, 1044, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 225, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 370, 0, 0,
0, 0, 104, 48, 209, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 930, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1286, 0, 759,
0, 120, 385, 0, 0, 0, 429, 0, 0, 0, 0, 0,
0, 0, 0, 820, 0, 0, 0, 0, 0, 0, 199, 0,
10, 151, 0, 0, 0, 761, 365, 0, 0, 0, 0, 0,
0, 0, 0, 0, 46, 1086, 0, 0, 0, 0, 11, 1624,
58, 344, 0, 0, 1008, 1868, 0, 0, 0, 888, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 711, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 440, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 914, 1913, 0, 958,
0, 885, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 847, 276, 0, 302, 65, 0, 0, 0, 510,
0, 1514, 0, 0, 0, 0, 0, 0, 152, 291, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 282, 589,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 130, 0, 0, 463, 42, 0, 0, 0, 0, 0, 372,
0, 0, 0, 0, 0, 0, 0, 0, 0, 680, 0, 0,
0, 0, 0, 0, 0, 0, 977, 1997, 0, 0, 0, 810,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1390, 0, 0,
0, 644, 0, 0, 867, 982, 0, 0, 0, 0, 0, 0,
0, 540, 0, 123, 0, 0, 0, 1978, 0, 0, 0, 0,
789, 623, 0, 1723, 0, 1220, 0, 0, 0, 0, 0, 0,
0, 480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 888, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 299, 1995, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 788, 179, 0, 0, 0, 0, 0, 0, 431, 156,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1373, 39, 80, 196, 0, 0, 507, 0, 0,
0, 646, 0, 0, 0, 0, 0, 1214, 0, 0, 0, 0,
926, 0, 0, 0, 1, 114, 0, 0, 0, 0, 0, 446,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 490,
0, 0, 0, 491, 0, 1584, 0, 0, 507, 250, 0, 0,
0, 158, 10, 362, 1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 408, 228, 860, 480, 0, 779, 0, 0, 0, 557,
0, 0, 142, 197, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 1490, 11, 378, 316, 1057, 0, 0, 18, 579,
299, 1546, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0,
0, 411, 0, 0, 0, 0, 727, 439, 0, 0, 0, 0,
0, 1528, 0, 0, 0, 0, 0, 0, 58, 0, 482, 0,
0, 0, 505, 1952, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 242, 0, 0, 0, 0, 0, 0, 0, 953,
0, 0, 0, 0, 802, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 290, 0, 0, 791, 52, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 112, 0, 0, 0, 0,
0, 1028, 0, 0, 138, 0, 0, 0, 0, 1811, 0, 0,
0, 0, 0, 0, 934, 1821, 0, 0, 0, 0, 371, 38,
0, 0, 0, 1296, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 723, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1330, 0, 0,
0, 0, 0, 0, 0, 1255, 296, 109, 0, 0, 0, 0,
0, 660, 0, 0, 0, 0, 270, 591, 0, 0, 0, 0,
0, 0, 0, 1090, 81, 0, 0, 0, 0, 391, 0, 0,
0, 0, 249, 322, 0, 0, 0, 0, 0, 0, 0, 1412,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 526, 632,
0, 0, 0, 0, 0, 0, 235, 144, 0, 0, 0, 0,
0, 940, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 309, 196, 0, 0,
0, 0, 0, 1912, 0, 1290, 0, 686, 0, 0, 625, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 0,
0, 0, 0, 43, 0, 0, 0, 0, 11, 967, 758, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
873, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890,
0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 1774,
393, 263, 0, 0, 0, 0, 0, 0, 818, 456, 0, 0,
251, 178, 393, 97, 0, 0, 0, 0, 0, 674, 168, 0,
0, 0, 0, 0, 0, 0, 159, 1639, 0, 0, 0, 0,
0, 0, 0, 0, 59, 934, 0, 191, 0, 0, 0, 0,
346, 165, 0, 877, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0,
0, 1297, 0, 0, 0, 0, 0, 0, 164, 0, 0, 0,
15, 132, 241, 1073, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 228, 324, 53, 0, 0, 910, 0, 0,
0, 0, 0, 0, 0, 0, 734, 705, 217, 73, 0, 0,
0, 0, 0, 0, 0, 0, 636, 389, 0, 1409, 0, 0,
0, 0, 0, 893, 0, 0, 0, 0, 21, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 721, 0,
0, 0, 959, 0, 0, 0, 0, 1433, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 174, 189, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 22, 2, 0, 0,
815, 354, 0, 0, 0, 0, 425, 0, 411, 60, 13, 1611,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1478, 596, 0, 0, 398, 0, 50, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 192, 1159, 0, 0, 0, 0, 0, 592, 223, 0,
0, 0, 0, 0, 0, 0, 245, 64, 0, 0, 0, 0,
278, 0, 604, 0, 0, 1502, 265, 0, 0, 0, 0, 0,
0, 0, 310, 1763, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 129, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1356, 0, 0, 0, 0,
0, 0, 0, 0, 505, 0, 0, 0, 0, 0, 0, 0,
1000, 0, 0, 966, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 839, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 637, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
590, 0, 0, 0, 0, 280, 0, 0, 0, 1386, 0, 0,
0, 281, 0, 1064, 0, 0, 0, 0, 0, 917, 0, 0,
15, 555, 0, 0, 1014, 1883, 0, 0, 0, 965, 0, 0,
117, 33, 0, 0, 0, 801, 0, 0, 0, 0, 0, 877,
0, 824, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 365, 0, 0, 0, 0, 0, 0, 774, 7, 0, 430,
0, 0, 231, 360, 0, 0, 0, 0, 0, 0, 0, 0,
822, 740, 0, 0, 929, 1485, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 852, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0,
0, 1001, 0, 0, 0, 0, 35, 831, 0, 0, 384, 457,
0, 0, 0, 1351, 0, 27, 0, 0, 984, 0, 264, 552,
0, 401, 0, 0, 0, 710, 0, 1211, 0, 0, 11, 205,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5, 579, 0, 717, 0, 0, 1011, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 805, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 489, 0, 0,
0, 1024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 892,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
473, 0, 0, 0, 659, 864, 0, 0, 0, 0, 0, 0,
152, 819, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 130, 0, 0, 0, 0, 0, 229, 0, 0, 0,
0, 674, 0, 0, 0, 0, 0, 0, 0, 0, 0, 770,
52, 79, 0, 0, 0, 1666, 0, 409, 0, 0, 0, 0,
0, 0, 0, 195, 0, 688, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 889, 174, 160, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 872, 0, 918,
569, 268, 0, 0, 0, 1224, 0, 1361, 0, 0, 0, 0,
0, 0, 0, 0, 0, 374, 0, 0, 0, 0, 0, 731,
0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0,
202, 506, 444, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 835, 0, 17, 1526,
0, 0, 0, 0, 0, 477, 0, 0, 994, 1374, 76, 0,
0, 0, 0, 0, 0, 0, 355, 287, 0, 1389, 0, 0,
0, 0, 0, 0, 455, 384, 0, 0, 0, 264, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1001, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28,
0, 0, 0, 851, 175, 359, 0, 0, 0, 0, 0, 0,
0, 0, 287, 740, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 857,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 819, 1402, 0, 0, 0, 0, 0, 0, 174, 224,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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375, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1309, 0, 0, 0, 0, 0, 0, 0, 0, 376, 12,
0, 0, 0, 0, 0, 154, 0, 1520, 0, 1753, 95, 502,
0, 0, 0, 0, 0, 0, 0, 269, 291, 1197, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
15, 0, 0, 0, 0, 1341, 0, 1017, 0, 0, 0, 0,
0, 0, 0, 0, 857, 1810, 533, 0, 0, 1453, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 836, 211, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
19, 0, 156, 0, 0, 0, 0, 1009, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 820, 0, 0,
0, 0, 0, 0, 0, 0, 0, 228, 0, 0, 0, 1131,
0, 1276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 849, 1792, 0, 0, 389, 291, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 525, 0, 0, 0, 453, 0,
0, 0, 0, 666, 0, 0, 0, 422, 0, 355, 0, 0,
0, 0, 165, 0, 260, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 865, 0, 0,
0, 0, 0, 0, 0, 1625, 0, 0, 0, 234, 0, 1383,
0, 0, 0, 0, 0, 0, 0, 0, 306, 0, 0, 0,
802, 1921, 0, 0, 0, 0, 0, 0, 180, 0, 0, 0,
0, 1312, 814, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 707, 0, 0, 0, 1493, 11, 61, 733, 0, 0, 0,
341, 0, 0, 0, 98, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1014, 0, 0, 0, 0, 0, 0, 0,
142, 102, 0, 0, 30, 0, 0, 823, 0, 1045, 0, 0,
0, 1930, 0, 1512, 0, 0, 0, 0, 0, 0, 0, 87,
0, 1243, 245, 0, 0, 0, 0, 0, 0, 0, 48, 68,
0, 0, 0, 0, 0, 0, 0, 0, 126, 77, 625, 938,
0, 0, 351, 0, 0, 0, 174, 1668, 0, 707, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 403, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0,
0, 282, 0, 0, 0, 0, 0, 0, 8, 44, 0, 0,
363, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 545, 761, 0, 0, 835, 1254, 0, 0, 0, 0,
930, 1936, 0, 0, 0, 0, 0, 0, 0, 0, 653, 0,
0, 0, 0, 0, 344, 0, 0, 1483, 673, 185, 0, 0,
460, 93, 753, 478, 0, 0, 0, 0, 0, 1020, 0, 0,
0, 0, 0, 0, 0, 103, 0, 0, 0, 499, 0, 0,
0, 0, 0, 0, 207, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 96, 0, 968, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 3, 0, 0, 0, 0, 399, 0, 0, 0, 0,
224, 563, 0, 0, 0, 0, 0, 704, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1559, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 861, 0, 0, 0, 0, 946, 333, 746,
0, 0, 0, 0, 0, 0, 0, 910, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 652, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1393, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1514, 0, 0,
0, 0, 201, 0, 510, 717, 0, 0, 528, 0, 0, 0,
0, 20, 0, 0, 0, 1251, 0, 0, 0, 1163, 0, 0,
0, 307, 0, 0, 0, 0, 0, 1091, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 429, 0, 0, 0, 881,
0, 0, 0, 0, 0, 621, 0, 0, 0, 0, 0, 0,
0, 736, 0, 348, 0, 868, 0, 0, 0, 0, 433, 0,
0, 0, 771, 1495, 0, 0, 0, 0, 215, 0, 0, 0,
0, 0, 124, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 55, 0, 0, 0, 0, 0, 0, 0, 112, 62,
0, 856, 270, 0, 572, 0, 0, 0, 0, 939, 0, 0,
0, 0, 0, 0, 0, 352, 0, 0, 0, 0, 0, 0,
0, 0, 0, 647, 0, 0, 0, 0, 10, 0, 0, 0,
0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 464, 0, 0, 109, 0, 0,
0, 1746, 0, 0, 0, 515, 0, 0, 0, 566, 0, 0,
0, 0, 0, 0, 67, 40, 0, 0, 722, 992, 0, 0,
923, 0, 0, 0, 0, 0, 0, 1145, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 568, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 247, 0,
0, 0, 0, 645, 0, 0, 328, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1363, 0, 0, 0, 0,
0, 1280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
7, 28, 360, 162, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 764, 0, 0, 833, 862, 0, 856, 0, 0,
0, 0, 0, 0, 736, 92, 0, 0, 948, 1944, 0, 1479,
63, 590, 0, 0, 0, 1521, 0, 0, 0, 709, 0, 0,
61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 483, 0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1000, 717, 1845, 0, 423, 0, 0,
0, 0, 0, 0, 0, 0, 510, 0, 0, 1048, 0, 0,
0, 618, 0, 0, 0, 520, 0, 0, 0, 0, 990, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 321,
0, 0, 0, 0, 0, 0, 0, 1135, 0, 0, 921, 0,
0, 0, 24, 397, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 856, 0, 0, 0, 139,
282, 981, 0, 288, 0, 0, 0, 1890, 651, 56, 0, 0,
0, 0, 0, 0, 0, 0, 261, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 617, 1403, 0, 1205, 0, 0,
563, 0, 0, 0, 0, 0, 0, 0, 0, 333, 0, 0,
0, 0, 0, 369, 0, 0, 0, 0, 0, 0, 0, 0,
0, 622, 0, 0, 0, 1407, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 624, 160, 0, 363, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 619, 0, 174, 292, 0, 0, 656, 616,
0, 0, 0, 685, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 647, 0, 0, 0, 631, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1267, 0, 0, 0, 1797, 0, 0,
0, 1684, 0, 0, 469, 0, 531, 1230, 73, 0, 0, 0,
0, 0, 0, 0, 0, 0, 268, 0, 0, 0, 0, 0,
102, 558, 109, 65, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
595, 0, 0, 0, 0, 0, 374, 1832, 0, 0, 0, 0,
0, 0, 16, 0, 405, 6, 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0,
0, 0, 0, 0, 0, 0, 0, 0, 530, 588, 0, 0,
0, 0, 0, 0, 0, 0, 0, 786, 0, 0, 0, 0,
0, 580, 627, 88, 447, 57, 0, 0, 0, 0, 0, 0,
0, 0, 845, 735, 0, 0, 0, 0, 0, 31, 15, 0,
460, 521, 12, 424, 0, 0, 0, 1302, 0, 0, 0, 0,
0, 0, 0, 595, 0, 0, 0, 13, 548, 97, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1472, 452, 1767, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 115, 0, 0, 0, 0, 0, 0, 1543, 0, 1111,
0, 0, 0, 0, 1, 0, 359, 488, 0, 267, 0, 0,
0, 1983, 0, 0, 0, 0, 0, 0, 0, 1155, 0, 1575,
0, 1438, 31, 0, 0, 377, 101, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 0, 0,
0, 0, 0, 0, 0, 2023, 0, 0, 0, 0, 0, 1836,
0, 0, 0, 0, 35, 843, 0, 0, 0, 0, 0, 0,
0, 554, 0, 0, 0, 536, 625, 207, 0, 1371, 0, 0,
0, 424, 785, 336, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 896,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 27, 750, 0, 0, 0, 0, 238, 0,
0, 0, 0, 0, 383, 0, 0, 0, 0, 0, 0, 0,
0, 603, 725, 11, 0, 0, 0, 0, 0, 0, 0, 0,
0, 476, 0, 0, 0, 0, 0, 1552, 0, 0, 0, 0,
0, 0, 0, 680, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 435, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1431, 0, 0, 13, 112, 0, 0, 356, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1963, 0, 0, 0, 1244,
18, 0, 0, 0, 0, 0, 0, 867, 0, 0, 0, 0,
0, 0, 50, 708, 73, 592, 0, 502, 0, 0, 0, 0,
0, 0, 161, 347, 0, 0, 0, 0, 470, 33, 0, 246,
571, 10, 0, 465, 614, 0, 237, 0, 0, 0, 0, 0,
24, 18, 0, 506, 0, 0, 0, 0, 0, 0, 33, 309,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140, 0,
0, 0, 0, 1056, 0, 0, 0, 1704, 0, 0, 0, 0,
0, 0, 0, 1036, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1315, 432, 86, 264, 524, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 0,
0, 0, 0, 0, 123, 927, 0, 0, 957, 1149, 0, 0,
0, 0, 0, 778, 0, 502, 196, 0, 0, 0, 0, 1312,
0, 0, 0, 0, 0, 0, 0, 855, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 45, 1400, 0, 0, 0, 1003,
0, 0, 0, 0, 0, 1097, 0, 0, 0, 0, 0, 0,
0, 0, 545, 612, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 54, 0, 0, 0, 0, 172, 0, 0,
0, 1029, 0, 0, 0, 0, 0, 0, 0, 0, 0, 568,
0, 0, 0, 732, 617, 0, 0, 974, 94, 989, 733, 0,
0, 0, 0, 0, 0, 1789, 0, 0, 665, 2015, 0, 0,
0, 0, 0, 0, 806, 287, 0, 0, 0, 0, 0, 1539,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 1563,
0, 0, 0, 0, 0, 0, 0, 0, 0, 484, 0, 0,
0, 0, 0, 1623, 0, 0, 0, 0, 0, 0, 0, 0,
878, 1833, 0, 1569, 0, 0, 0, 0, 0, 0, 0, 0,
93, 0, 715, 994, 0, 0, 0, 0, 0, 63, 0, 591,
0, 0, 0, 0, 0, 0, 0, 749, 0, 0, 0, 0,
547, 366, 0, 0, 0, 1747, 0, 0, 0, 0, 0, 0,
0, 89, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1463, 0, 772, 893, 0,
0, 0, 48, 0, 0, 941, 0, 0, 690, 1785, 106, 440,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0,
332, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 852, 0, 0, 416, 564, 0, 918,
0, 1764, 0, 0, 3, 0, 0, 274, 0, 0, 0, 0,
501, 0, 0, 0, 0, 0, 0, 0, 851, 743, 0, 49,
0, 879, 0, 0, 47, 0, 0, 0, 0, 0, 0, 865,
0, 1202, 0, 0, 0, 0, 0, 0, 47, 272, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1455, 0, 0,
0, 0, 891, 1911, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 761, 0, 0,
0, 0, 0, 0, 0, 0, 0, 407, 0, 183, 0, 0,
490, 0, 0, 0, 0, 0, 0, 0, 35, 731, 0, 0,
0, 0, 0, 0, 0, 819, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 575, 0, 0, 0, 0,
45, 818, 0, 0, 77, 222, 0, 0, 0, 0, 849, 1880,
0, 0, 0, 633, 0, 1308, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 86, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 817, 0, 0, 0, 0,
0, 0, 0, 0, 0, 882, 0, 0, 0, 914, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 865, 0, 0, 426,
399, 58, 0, 0, 0, 0, 0, 0, 538, 102, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 876, 0, 0, 0, 0, 0, 0, 0, 0,
0, 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0, 1460, 0, 962, 0, 0, 0, 0,
0, 460, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 34, 199, 0, 0, 0, 388, 474, 0,
271, 0, 333, 608, 0, 0, 0, 0, 0, 0, 49, 0,
988, 0, 707, 617, 0, 0, 0, 0, 0, 0, 0, 756,
0, 0, 0, 0, 0, 1583, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 285, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 344, 0, 0, 0, 0,
0, 0, 0, 0, 515, 1709, 0, 0, 0, 0, 0, 0,
0, 0, 404, 0, 0, 0, 0, 500, 0, 0, 0, 0,
0, 0, 0, 0, 0, 68, 216, 0, 0, 0, 0, 0,
0, 0, 488, 353, 0, 0, 177, 236, 0, 0, 458, 490,
0, 0, 0, 0, 0, 0, 756, 1504, 0, 757, 0, 1735,
0, 0, 108, 598, 0, 0, 0, 0,
]
// From enc/dictionary_hash_inc.h kStaticDictionaryHashLengths.
pri const STATIC_DICTIONARY_HASH_LENGTHS : roarray[32768] base.u8[..= 31] = [
8, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0,
0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 4, 22, 5, 0, 4,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 6, 0, 0, 0, 5, 0, 0,
0, 0, 0, 0, 0, 7, 13, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 7, 0, 7, 0, 0, 0, 0, 0, 6,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 4, 0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5,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 4, 0, 6, 12, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 6, 0, 0, 0, 0, 0, 5, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 4, 0, 0, 0, 6, 14, 0,
11, 0, 9, 6, 0, 0, 0, 0, 0, 0, 22, 0, 12, 0, 8, 6, 0, 0, 0, 0,
0, 0, 0, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0,
0, 0, 0, 0, 10, 7, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 4,
0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 11, 0, 0, 0, 0, 0, 0, 0, 8, 6,
0, 0, 9, 7, 0, 0, 12, 4, 0, 0, 0, 0, 0, 0, 12, 6, 0, 6, 0, 7,
0, 0, 8, 5, 0, 0, 0, 0,
]
// From enc/hash.h kCutoffTransformsCount.
pri const CUTOFF_TRANSFORMS_COUNT : base.u64 = 10
// From enc/hash.h kCutoffTransforms.
pri const CUTOFF_TRANSFORMS : base.u64 = 0x71B_520A_DA2D_3200
// From enc/command.c kBrotliInsBase.
pri const INS_BASE : roarray[24] base.u32[..= 22594] = [
0, 1, 2, 3, 4, 5, 6, 8, 10, 14, 18, 26,
34, 50, 66, 98, 130, 194, 322, 578, 1090, 2114, 6210, 22594,
]
// From enc/command.c kBrotliInsExtra.
pri const INS_EXTRA : roarray[24] base.u32[..= 24] = [
0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3,
4, 4, 5, 5, 6, 7, 8, 9, 10, 12, 14, 24,
]
// From enc/command.c kBrotliCopyBase.
pri const COPY_BASE : roarray[24] base.u32[..= 2118] = [
2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 18,
22, 30, 38, 54, 70, 102, 134, 198, 326, 582, 1094, 2118,
]
// From enc/command.c kBrotliCopyExtra.
pri const COPY_EXTRA : roarray[24] base.u32[..= 24] = [
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2,
3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 24,
]
// From enc/entropy_encode_static.h StoreStaticCommandHuffmanTree: 56 bits
// and then STATIC_COMMAND_TREE_NUM_BITS_2 bits of STATIC_COMMAND_TREE_BITS_2.
pri const STATIC_COMMAND_TREE_BITS : base.u64 = 0x92_6244_1630_7003
pri const STATIC_COMMAND_TREE_NUM_BITS_2 : base.u32 = 3
pri const STATIC_COMMAND_TREE_BITS_2 : base.u64 = 0x0
// From enc/entropy_encode_static.h StoreStaticDistanceHuffmanTree.
pri const STATIC_DISTANCE_TREE_NUM_BITS : base.u32 = 28
pri const STATIC_DISTANCE_TREE_BITS : base.u64 = 0x369_DC03
// From enc/entropy_encode_static.h kStaticCommandCodeDepth.
pri const STATIC_COMMAND_CODE_DEPTH : roarray[704] base.u8[..= 15] = [
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 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, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
]
// From enc/entropy_encode_static.h kStaticCommandCodeBits.
pri const STATIC_COMMAND_CODE_BITS : roarray[704] base.u16 = [
0, 256, 128, 384, 64, 320, 192, 448, 32, 288, 160, 416,
96, 352, 224, 480, 16, 272, 144, 400, 80, 336, 208, 464,
48, 304, 176, 432, 112, 368, 240, 496, 8, 264, 136, 392,
72, 328, 200, 456, 40, 296, 168, 424, 104, 360, 232, 488,
24, 280, 152, 408, 88, 344, 216, 472, 56, 312, 184, 440,
120, 376, 248, 504, 4, 260, 132, 388, 68, 324, 196, 452,
36, 292, 164, 420, 100, 356, 228, 484, 20, 276, 148, 404,
84, 340, 212, 468, 52, 308, 180, 436, 116, 372, 244, 500,
12, 268, 140, 396, 76, 332, 204, 460, 44, 300, 172, 428,
108, 364, 236, 492, 28, 284, 156, 412, 92, 348, 220, 476,
60, 316, 188, 444, 124, 380, 252, 508, 2, 258, 130, 386,
66, 322, 194, 450, 34, 290, 162, 418, 98, 354, 226, 482,
18, 274, 146, 402, 82, 338, 210, 466, 50, 306, 178, 434,
114, 370, 242, 498, 10, 266, 138, 394, 74, 330, 202, 458,
42, 298, 170, 426, 106, 362, 234, 490, 26, 282, 154, 410,
90, 346, 218, 474, 58, 314, 186, 442, 122, 378, 250, 506,
6, 262, 134, 390, 70, 326, 198, 454, 38, 294, 166, 422,
102, 358, 230, 486, 22, 278, 150, 406, 86, 342, 214, 470,
54, 310, 182, 438, 118, 374, 246, 502, 14, 270, 142, 398,
78, 334, 206, 462, 46, 302, 174, 430, 110, 366, 238, 494,
30, 286, 158, 414, 94, 350, 222, 478, 62, 318, 190, 446,
126, 382, 254, 510, 1, 257, 129, 385, 65, 321, 193, 449,
33, 289, 161, 417, 97, 353, 225, 481, 17, 273, 145, 401,
81, 337, 209, 465, 49, 305, 177, 433, 113, 369, 241, 497,
9, 265, 137, 393, 73, 329, 201, 457, 41, 297, 169, 425,
105, 361, 233, 489, 25, 281, 153, 409, 89, 345, 217, 473,
57, 313, 185, 441, 121, 377, 249, 505, 5, 261, 133, 389,
69, 325, 197, 453, 37, 293, 165, 421, 101, 357, 229, 485,
21, 277, 149, 405, 85, 341, 213, 469, 53, 309, 181, 437,
117, 373, 245, 501, 13, 269, 141, 397, 77, 333, 205, 461,
45, 301, 173, 429, 109, 365, 237, 493, 29, 285, 157, 413,
93, 349, 221, 477, 61, 317, 189, 445, 125, 381, 253, 509,
3, 259, 131, 387, 67, 323, 195, 451, 35, 291, 163, 419,
99, 355, 227, 483, 19, 275, 147, 403, 83, 339, 211, 467,
51, 307, 179, 435, 115, 371, 243, 499, 11, 267, 139, 395,
75, 331, 203, 459, 43, 299, 171, 427, 107, 363, 235, 491,
27, 283, 155, 411, 91, 347, 219, 475, 59, 315, 187, 443,
123, 379, 251, 507, 7, 1031, 519, 1543, 263, 1287, 775, 1799,
135, 1159, 647, 1671, 391, 1415, 903, 1927, 71, 1095, 583, 1607,
327, 1351, 839, 1863, 199, 1223, 711, 1735, 455, 1479, 967, 1991,
39, 1063, 551, 1575, 295, 1319, 807, 1831, 167, 1191, 679, 1703,
423, 1447, 935, 1959, 103, 1127, 615, 1639, 359, 1383, 871, 1895,
231, 1255, 743, 1767, 487, 1511, 999, 2023, 23, 1047, 535, 1559,
279, 1303, 791, 1815, 151, 1175, 663, 1687, 407, 1431, 919, 1943,
87, 1111, 599, 1623, 343, 1367, 855, 1879, 215, 1239, 727, 1751,
471, 1495, 983, 2007, 55, 1079, 567, 1591, 311, 1335, 823, 1847,
183, 1207, 695, 1719, 439, 1463, 951, 1975, 119, 1143, 631, 1655,
375, 1399, 887, 1911, 247, 1271, 759, 1783, 503, 1527, 1015, 2039,
15, 1039, 527, 1551, 271, 1295, 783, 1807, 143, 1167, 655, 1679,
399, 1423, 911, 1935, 79, 1103, 591, 1615, 335, 1359, 847, 1871,
207, 1231, 719, 1743, 463, 1487, 975, 1999, 47, 1071, 559, 1583,
303, 1327, 815, 1839, 175, 1199, 687, 1711, 431, 1455, 943, 1967,
111, 1135, 623, 1647, 367, 1391, 879, 1903, 239, 1263, 751, 1775,
495, 1519, 1007, 2031, 31, 1055, 543, 1567, 287, 1311, 799, 1823,
159, 1183, 671, 1695, 415, 1439, 927, 1951, 95, 1119, 607, 1631,
351, 1375, 863, 1887, 223, 1247, 735, 1759, 479, 1503, 991, 2015,
63, 1087, 575, 1599, 319, 1343, 831, 1855, 191, 1215, 703, 1727,
447, 1471, 959, 1983, 127, 1151, 639, 1663, 383, 1407, 895, 1919,
255, 1279, 767, 1791, 511, 1535, 1023, 2047,
]
// From enc/entropy_encode_static.h kStaticDistanceCodeDepth.
pri const STATIC_DISTANCE_CODE_DEPTH : roarray[64] base.u8[..= 15] = [
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
]
// From enc/entropy_encode_static.h kStaticDistanceCodeBits.
pri const STATIC_DISTANCE_CODE_BITS : roarray[64] base.u16 = [
0, 32, 16, 48, 8, 40, 24, 56, 4, 36, 20, 52, 12, 44, 28, 60,
2, 34, 18, 50, 10, 42, 26, 58, 6, 38, 22, 54, 14, 46, 30, 62,
1, 33, 17, 49, 9, 41, 25, 57, 5, 37, 21, 53, 13, 45, 29, 61,
3, 35, 19, 51, 11, 43, 27, 59, 7, 39, 23, 55, 15, 47, 31, 63,
]
// From enc/encode.c kStaticContextMapContinuation.
pri const STATIC_CONTEXT_MAP_CONTINUATION : roarray[64] base.u8[..= 12] = [
1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
]
// From enc/encode.c kStaticContextMapSimpleUTF8.
pri const STATIC_CONTEXT_MAP_SIMPLE_UTF8 : roarray[64] base.u8[..= 12] = [
0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
]
// From enc/encode.c kStaticContextMapComplexUTF8.
pri const STATIC_CONTEXT_MAP_COMPLEX_UTF8 : roarray[64] base.u8[..= 12] = [
11, 11, 12, 12, 0, 0, 0, 0, 1, 1, 9, 9, 2, 2, 2, 2,
1, 1, 1, 1, 8, 3, 3, 3, 1, 1, 1, 1, 2, 2, 2, 2,
8, 4, 4, 4, 8, 7, 4, 4, 8, 0, 0, 0, 3, 3, 3, 3,
5, 5, 10, 5, 5, 5, 10, 5, 6, 6, 6, 6, 6, 6, 6, 6,
]
+437
View File
@@ -0,0 +1,437 @@
// Copyright 2026 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
// This file mirrors command.h, prefix.h and backward_references.c (and
// backward_references_inc.h): turning the ring buffer's bytes into commands.
//
// Commands are stored in the workbuf, starting at the this.cmds_off offset,
// as 16 little-endian bytes each, in the C code's Command struct order:
// insert_len_ (u32), copy_len_ (u32: the copy length in the low 25 bits and
// copy_code - copy_len in the high 7 bits), dist_extra_ (u32), cmd_prefix_
// (u16) and dist_prefix_ (u16).
// Mirrors BROTLI_NUM_DISTANCE_SHORT_CODES in constants.h.
pri const NUM_DISTANCE_SHORT_CODES : base.u32 = 16
// cmd_insert_len returns the i'th command's insert_len_.
pri func encoder.cmd_insert_len(wb: roslice base.u8, i: base.u64) base.u32 {
return this.load32le(s: args.wb, i: this.cmds_off ~mod+ (args.i ~mod* 16))
}
// cmd_copy_len_raw returns the i'th command's copy_len_.
pri func encoder.cmd_copy_len_raw(wb: roslice base.u8, i: base.u64) base.u32 {
return this.load32le(s: args.wb, i: (this.cmds_off ~mod+ (args.i ~mod* 16)) ~mod+ 4)
}
// cmd_dist_extra returns the i'th command's dist_extra_.
pri func encoder.cmd_dist_extra(wb: roslice base.u8, i: base.u64) base.u32 {
return this.load32le(s: args.wb, i: (this.cmds_off ~mod+ (args.i ~mod* 16)) ~mod+ 8)
}
// cmd_cmd_prefix returns the i'th command's cmd_prefix_.
pri func encoder.cmd_cmd_prefix(wb: roslice base.u8, i: base.u64) base.u16 {
return this.peek_u16(s: args.wb, i: (this.cmds_off ~mod+ (args.i ~mod* 16)) ~mod+ 12)
}
// cmd_dist_prefix returns the i'th command's dist_prefix_.
pri func encoder.cmd_dist_prefix(wb: roslice base.u8, i: base.u64) base.u16 {
return this.peek_u16(s: args.wb, i: (this.cmds_off ~mod+ (args.i ~mod* 16)) ~mod+ 14)
}
// set_cmd sets all of the i'th command's fields.
pri func encoder.set_cmd!(wb: slice base.u8, i: base.u64, insert_len: base.u32, copy_len: base.u32, dist_extra: base.u32, cmd_prefix: base.u16, dist_prefix: base.u16) {
var off : base.u64
off = this.cmds_off ~mod+ (args.i ~mod* 16)
this.poke_u32!(s: args.wb, i: off, v: args.insert_len)
this.poke_u32!(s: args.wb, i: off ~mod+ 4, v: args.copy_len)
this.poke_u32!(s: args.wb, i: off ~mod+ 8, v: args.dist_extra)
this.poke_u16!(s: args.wb, i: off ~mod+ 12, v: args.cmd_prefix)
this.poke_u16!(s: args.wb, i: off ~mod+ 14, v: args.dist_prefix)
}
// Mirrors CommandCopyLen in command.h.
pri func encoder.cmd_copy_len(wb: roslice base.u8, i: base.u64) base.u32 {
return this.cmd_copy_len_raw(wb: args.wb, i: args.i) & 0x1FF_FFFF
}
// Mirrors CommandCopyLenCode in command.h.
pri func encoder.cmd_copy_len_code(wb: roslice base.u8, i: base.u64) base.u32 {
var raw : base.u32
var modifier : base.u32
var delta : base.u32
raw = this.cmd_copy_len_raw(wb: args.wb, i: args.i)
modifier = raw >> 25
// (int8_t)((uint8_t)(modifier | ((modifier & 0x40) << 1))), as a two's
// complement u32.
delta = modifier | ((modifier & 0x40) << 1)
if delta >= 0x80 {
delta |= 0xFFFF_FF00
}
return (raw & 0x1FF_FFFF) ~mod+ delta
}
// Mirrors CommandDistanceContext in command.h.
pri func encoder.cmd_distance_context(cmd_prefix: base.u16) base.u32 {
var r : base.u32
var c : base.u32
r = (args.cmd_prefix >> 6) as base.u32
c = (args.cmd_prefix & 7) as base.u32
if ((r == 0) or (r == 2) or (r == 4) or (r == 7)) and (c <= 2) {
return c
}
return 3
}
// Mirrors GetInsertLengthCode in command.h.
pri func encoder.get_insert_length_code(insertlen: base.u64) base.u32 {
var nbits : base.u32
if args.insertlen < 6 {
return args.insertlen as base.u32
} else if args.insertlen < 130 {
nbits = this.log2_floor_non_zero(n: args.insertlen - 2) ~mod- 1
return ((nbits ~mod<< 1) ~mod+ (((args.insertlen - 2) >> (nbits & 63)) as base.u32)) ~mod+ 2
} else if args.insertlen < 2114 {
return this.log2_floor_non_zero(n: args.insertlen - 66) ~mod+ 10
} else if args.insertlen < 6210 {
return 21
} else if args.insertlen < 22594 {
return 22
}
return 23
}
// Mirrors GetCopyLengthCode in command.h.
pri func encoder.get_copy_length_code(copylen: base.u64) base.u32 {
var nbits : base.u32
if args.copylen < 10 {
return ((args.copylen ~mod- 2) & 0xFF) as base.u32
} else if args.copylen < 134 {
nbits = this.log2_floor_non_zero(n: args.copylen - 6) ~mod- 1
return ((nbits ~mod<< 1) ~mod+ (((args.copylen - 6) >> (nbits & 63)) as base.u32)) ~mod+ 4
} else if args.copylen < 2118 {
return this.log2_floor_non_zero(n: args.copylen - 70) ~mod+ 12
}
return 23
}
// Mirrors CombineLengthCodes in command.h.
pri func encoder.combine_length_codes(inscode: base.u32, copycode: base.u32, use_last_distance: base.bool) base.u16 {
var bits64 : base.u32
var offset : base.u32
bits64 = (args.copycode & 7) | ((args.inscode & 7) << 3)
if args.use_last_distance and (args.inscode < 8) and (args.copycode < 16) {
if args.copycode < 8 {
return (bits64 & 0xFFFF) as base.u16
}
return ((bits64 | 64) & 0xFFFF) as base.u16
}
offset = 2 ~mod* ((args.copycode >> 3) ~mod+ (3 ~mod* (args.inscode >> 3)))
offset = ((offset ~mod<< 5) ~mod+ 0x40) ~mod+ (((0x52_0D40 as base.u32) >> (offset & 31)) & 0xC0)
return ((offset | bits64) & 0xFFFF) as base.u16
}
// Mirrors GetLengthCode in command.h.
pri func encoder.get_length_code(insertlen: base.u64, copylen: base.u64, use_last_distance: base.bool) base.u16 {
return this.combine_length_codes(
inscode: this.get_insert_length_code(insertlen: args.insertlen),
copycode: this.get_copy_length_code(copylen: args.copylen),
use_last_distance: args.use_last_distance)
}
// Mirrors PrefixEncodeCopyDistance in prefix.h. It returns the code (the C
// code's *code, in the low 16 bits) and the extra bits (the C code's
// *extra_bits, in the high 32 bits).
pri func encoder.prefix_encode_copy_distance(distance_code: base.u64, num_direct_codes: base.u64, postfix_bits: base.u32[..= 3]) base.u64 {
var dist : base.u64
var bucket : base.u64
var postfix_mask : base.u64
var postfix : base.u64
var prefix : base.u64
var offset : base.u64
var nbits : base.u64
var code : base.u64
var extra : base.u64
if args.distance_code < (16 ~mod+ args.num_direct_codes) {
return args.distance_code & 0xFFFF
}
dist = ((1 as base.u64) << ((args.postfix_bits + 2) & 63)) ~mod+
((args.distance_code ~mod- 16) ~mod- args.num_direct_codes)
bucket = (this.log2_floor_non_zero(n: dist) as base.u64) ~mod- 1
postfix_mask = ((1 as base.u64) << (args.postfix_bits & 63)) ~mod- 1
postfix = dist & postfix_mask
prefix = (dist >> (bucket & 63)) & 1
offset = (2 ~mod+ prefix) ~mod<< (bucket & 63)
nbits = bucket ~mod- (args.postfix_bits as base.u64)
code = (nbits ~mod<< 10) | (((16 ~mod+ args.num_direct_codes) ~mod+
(((2 ~mod* (nbits ~mod- 1)) ~mod+ prefix) ~mod<< (args.postfix_bits & 63))) ~mod+ postfix)
extra = ((dist ~mod- offset) >> (args.postfix_bits & 63)) & 0xFFFF_FFFF
return (code & 0xFFFF) | (extra << 32)
}
// Mirrors InitCommand in command.h, storing the n'th command.
pri func encoder.init_command!(wb: slice base.u8, n: base.u64, insertlen: base.u64, copylen: base.u64, copylen_code_delta: base.u64, distance_code: base.u64) {
var delta : base.u32
var pe : base.u64
var dist_prefix : base.u16
var cmd_prefix : base.u16
delta = (args.copylen_code_delta & 0xFF) as base.u32
pe = this.prefix_encode_copy_distance(
distance_code: args.distance_code,
num_direct_codes: this.num_direct_distance_codes as base.u64,
postfix_bits: this.distance_postfix_bits & 3)
dist_prefix = (pe & 0xFFFF) as base.u16
cmd_prefix = this.get_length_code(
insertlen: args.insertlen,
copylen: args.copylen ~mod+ args.copylen_code_delta,
use_last_distance: (dist_prefix & 0x3FF) == 0)
this.set_cmd!(wb: args.wb, i: args.n,
insert_len: (args.insertlen & 0xFFFF_FFFF) as base.u32,
copy_len: ((args.copylen & 0xFFFF_FFFF) as base.u32) | (delta ~mod<< 25),
dist_extra: (pe >> 32) as base.u32,
cmd_prefix: cmd_prefix,
dist_prefix: dist_prefix)
}
// Mirrors InitInsertCommand in command.h, storing the n'th command.
pri func encoder.init_insert_command!(wb: slice base.u8, n: base.u64, insertlen: base.u64) {
this.set_cmd!(wb: args.wb, i: args.n,
insert_len: (args.insertlen & 0xFFFF_FFFF) as base.u32,
copy_len: 4 << 25,
dist_extra: 0,
cmd_prefix: this.get_length_code(insertlen: args.insertlen, copylen: 4, use_last_distance: false),
dist_prefix: 16)
}
// Mirrors CommandRestoreDistanceCode in command.h.
pri func encoder.cmd_restore_distance_code(wb: roslice base.u8, i: base.u64) base.u32 {
var dist_prefix : base.u32
var dcode : base.u32
var nbits : base.u32
var extra : base.u32
var postfix_mask : base.u32
var hcode : base.u32
var lcode : base.u32
var offset : base.u32
var npostfix : base.u32
dist_prefix = this.cmd_dist_prefix(wb: args.wb, i: args.i) as base.u32
npostfix = this.distance_postfix_bits & 31
if (dist_prefix & 0x3FF) < (16 ~mod+ this.num_direct_distance_codes) {
return dist_prefix & 0x3FF
}
dcode = dist_prefix & 0x3FF
nbits = dist_prefix >> 10
extra = this.cmd_dist_extra(wb: args.wb, i: args.i)
postfix_mask = ((1 as base.u32) << npostfix) ~mod- 1
hcode = ((dcode ~mod- this.num_direct_distance_codes) ~mod- 16) >> npostfix
lcode = ((dcode ~mod- this.num_direct_distance_codes) ~mod- 16) & postfix_mask
offset = ((2 ~mod+ (hcode & 1)) ~mod<< (nbits & 31)) ~mod- 4
return ((((offset ~mod+ extra) ~mod<< npostfix) ~mod+ lcode) ~mod+ this.num_direct_distance_codes) ~mod+ 16
}
// Mirrors ComputeDistanceCode in backward_references.c.
pri func encoder.compute_distance_code(distance: base.u64, max_distance: base.u64) base.u64 {
var distance_plus_3 : base.u64
var offset0 : base.u64
var offset1 : base.u64
if args.distance <= args.max_distance {
distance_plus_3 = args.distance ~mod+ 3
offset0 = distance_plus_3 ~mod- this.dist_cache_u64(i: 0)
offset1 = distance_plus_3 ~mod- this.dist_cache_u64(i: 1)
if args.distance == this.dist_cache_u64(i: 0) {
return 0
} else if args.distance == this.dist_cache_u64(i: 1) {
return 1
} else if offset0 < 7 {
return ((0x975_0468 as base.u64) >> (4 * offset0)) & 0xF
} else if offset1 < 7 {
return ((0xFDB_1ACE as base.u64) >> (4 * offset1)) & 0xF
} else if args.distance == this.dist_cache_u64(i: 2) {
return 2
} else if args.distance == this.dist_cache_u64(i: 3) {
return 3
}
}
return args.distance ~mod+ 15
}
// Mirrors CreateBackwardReferences in backward_references_inc.h (via
// BrotliCreateBackwardReferences in backward_references.c), without a
// compound dictionary and with the built-in static dictionary. New commands
// are appended at this.num_cmds.
pri func encoder.create_backward_references!(wb: slice base.u8, num_bytes: base.u64, position: base.u64) base.status {
var position : base.u64
var max_backward_limit : base.u64
var position_offset : base.u64
var insert_length : base.u64
var pos_end : base.u64
var store_end : base.u64
var htl : base.u64
var random_heuristics_window_size : base.u64
var apply_random_heuristics : base.u64
var max_length : base.u64
var max_distance : base.u64
var dictionary_start : base.u64
var delayed_backward_references : base.u32
var sr_len : base.u64
var sr_distance : base.u64
var sr_score : base.u64
var sr_len_code_delta : base.u64
var distance_code : base.u64
var range_start : base.u64
var range_end : base.u64
var k_margin : base.u64
var pos_jump : base.u64
position = args.position
max_backward_limit = ((1 as base.u64) << this.lgwin) ~mod- 16
position_offset = this.stream_offset as base.u64
insert_length = this.last_insert_len
pos_end = position ~mod+ args.num_bytes
htl = this.hasher_type_length()
store_end = position
if args.num_bytes >= htl {
store_end = ((position ~mod+ args.num_bytes) ~mod- htl) ~mod+ 1
}
random_heuristics_window_size = 64
if this.quality >= 9 {
random_heuristics_window_size = 512
}
apply_random_heuristics = position ~mod+ random_heuristics_window_size
this.prepare_distance_cache!()
while (position ~mod+ htl) < pos_end {
max_length = pos_end ~mod- position
max_distance = position.min(no_more_than: max_backward_limit)
dictionary_start = this.min64(a: position ~mod+ position_offset, b: max_backward_limit)
this.sr_len = 0
this.sr_len_code_delta = 0
this.sr_distance = 0
this.sr_score = SCORE_BASE + 100
this.find_longest_match!(wb: args.wb, cur_ix: position, max_length: max_length,
max_backward: max_distance, dictionary_distance: dictionary_start,
max_distance: this.dist_max_distance)
if this.sr_score > (SCORE_BASE + 100) {
// Found a match. Let's look for something even better ahead.
delayed_backward_references = 0
max_length ~mod-= 1
while true {
sr_len = this.sr_len
sr_distance = this.sr_distance
sr_score = this.sr_score
sr_len_code_delta = this.sr_len_code_delta
this.sr_len = 0
if this.quality < 5 {
this.sr_len = this.min64(a: sr_len ~mod- 1, b: max_length)
}
this.sr_len_code_delta = 0
this.sr_distance = 0
this.sr_score = SCORE_BASE + 100
max_distance = this.min64(a: position ~mod+ 1, b: max_backward_limit)
dictionary_start = this.min64(a: (position ~mod+ 1) ~mod+ position_offset, b: max_backward_limit)
this.find_longest_match!(wb: args.wb, cur_ix: position ~mod+ 1, max_length: max_length,
max_backward: max_distance, dictionary_distance: dictionary_start,
max_distance: this.dist_max_distance)
if this.sr_score >= (sr_score ~mod+ 175) {
// Ok, let's just write one byte for now and start a match
// from the next byte.
position ~mod+= 1
insert_length ~mod+= 1
delayed_backward_references ~mod+= 1
if (delayed_backward_references < 4) and ((position ~mod+ htl) < pos_end) {
max_length ~mod-= 1
continue
}
break
}
// Keep the old sr.
this.sr_len = sr_len
this.sr_distance = sr_distance
this.sr_score = sr_score
this.sr_len_code_delta = sr_len_code_delta
break
}
apply_random_heuristics = (position ~mod+ (2 ~mod* this.sr_len)) ~mod+ random_heuristics_window_size
dictionary_start = this.min64(a: position ~mod+ position_offset, b: max_backward_limit)
// The first 16 codes are special short-codes, and the minimum
// offset is 1.
distance_code = this.compute_distance_code(distance: this.sr_distance, max_distance: dictionary_start)
if (this.sr_distance <= dictionary_start) and (distance_code > 0) {
this.dist_cache[3] = this.dist_cache[2]
this.dist_cache[2] = this.dist_cache[1]
this.dist_cache[1] = this.dist_cache[0]
this.dist_cache[0] = (this.sr_distance & 0xFFFF_FFFF) as base.u32
this.prepare_distance_cache!()
}
if this.num_cmds >= this.cmds_cap {
return "#internal error: inconsistent encoder state"
}
this.init_command!(wb: args.wb, n: this.num_cmds, insertlen: insert_length, copylen: this.sr_len,
copylen_code_delta: this.sr_len_code_delta, distance_code: distance_code)
this.num_cmds ~mod+= 1
this.num_lits ~mod+= insert_length
insert_length = 0
// Put the hash keys into the table, if there are enough bytes
// left. Depending on the hasher implementation, it can push all
// positions in the given range or only a subset of them. Avoid
// hash poisoning with RLE data.
range_start = position ~mod+ 2
range_end = this.min64(a: position ~mod+ this.sr_len, b: store_end)
if this.sr_distance < (this.sr_len >> 2) {
range_start = range_end.min(no_more_than: range_start.max(no_less_than:
(position ~mod+ this.sr_len) ~mod- (this.sr_distance ~mod<< 2)))
}
this.hasher_store_range!(wb: args.wb, ix_start: range_start, ix_end: range_end)
position ~mod+= this.sr_len
} else {
insert_length ~mod+= 1
position ~mod+= 1
// If we have not seen matches for a long time, we can skip some
// match lookups. Unsuccessful match lookups are very very
// expensive and this kind of a heuristic speeds up compression
// quite a lot.
if position > apply_random_heuristics {
// Going through uncompressible data, jump.
if position > (apply_random_heuristics ~mod+ (4 ~mod* random_heuristics_window_size)) {
k_margin = this.max64(a: htl ~mod- 1, b: 4)
pos_jump = this.min64(a: position ~mod+ 16, b: pos_end ~mod- k_margin)
while position < pos_jump {
this.hasher_store!(wb: args.wb, ix: position)
insert_length ~mod+= 4
position ~mod+= 4
}
} else {
k_margin = this.max64(a: htl ~mod- 1, b: 2)
pos_jump = this.min64(a: position ~mod+ 8, b: pos_end ~mod- k_margin)
while position < pos_jump {
this.hasher_store!(wb: args.wb, ix: position)
insert_length ~mod+= 2
position ~mod+= 2
}
}
}
}
}
insert_length ~mod+= pos_end ~mod- position
this.last_insert_len = insert_length
return ok
}
+1180
View File
@@ -0,0 +1,1180 @@
// Copyright 2026 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
// This file mirrors the parts of brotli_bit_stream.c (and block_encoder_inc.h)
// that qualities 2 to 9 use: storing compressed metablocks (with and without
// block splits and context maps) and uncompressed metablocks.
//
// The storage (the C code's uint8_t* storage) is the s argument. The input
// (the ring buffer) and the commands are in the wb (workbuf) argument. The
// generic Huffman code builder (build_and_store_huffman_tree) works on
// this.huff_histo, this.huff_depth and this.huff_bits: its callers copy their
// histogram in and the resulting depths and bits out.
// rb_byte returns the ring buffer's byte at position pos (masked).
pri func encoder.rb_byte(wb: roslice base.u8, pos: base.u64) base.u8 {
return this.byte_at(s: args.wb, i: this.rb_buf_off ~mod+ (args.pos & (this.rb_mask as base.u64)))
}
// Mirrors JumpToByteBoundary in brotli_bit_stream.c.
pri func encoder.jump_to_byte_boundary!(s: slice base.u8) {
this.bw_ix = (this.bw_ix ~mod+ 7) & 0xFFFF_FFFF_FFFF_FFF8
this.set_byte!(s: args.s, i: this.bw_ix >> 3, v: 0)
}
// Mirrors BrotliEncodeMlen and StoreCompressedMetaBlockHeader in
// brotli_bit_stream.c.
pri func encoder.store_compressed_meta_block_header!(is_final_block: base.bool, length: base.u64, s: slice base.u8) {
var lg : base.u32[..= 32]
var mnibbles : base.u32
// Write ISLAST bit.
if args.is_final_block {
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
// Write ISEMPTY bit.
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
} else {
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
}
lg = 1
if args.length > 1 {
lg = this.log2_floor_non_zero(n: args.length ~mod- 1) + 1
}
mnibbles = 4
if lg >= 16 {
mnibbles = (lg + 3) / 4
}
this.write_bits!(n_bits: 2, bits: (mnibbles ~mod- 4) as base.u64, s: args.s)
this.write_bits!(n_bits: mnibbles ~mod* 4, bits: args.length ~mod- 1, s: args.s)
if not args.is_final_block {
// Write ISUNCOMPRESSED bit.
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
}
}
// Mirrors BrotliStoreUncompressedMetaBlockHeader and
// BrotliStoreUncompressedMetaBlock in brotli_bit_stream.c.
pri func encoder.store_uncompressed_meta_block!(is_final_block: base.bool, wb: roslice base.u8, position: base.u64, len: base.u64, s: slice base.u8) {
var lg : base.u32[..= 32]
var mnibbles : base.u32
var masked_pos : base.u64
var len : base.u64
var len1 : base.u64
var mask : base.u64
mask = this.rb_mask as base.u64
masked_pos = args.position & mask
len = args.len
// Write ISLAST bit. Uncompressed block cannot be the last one, so set to
// 0.
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
lg = 1
if len > 1 {
lg = this.log2_floor_non_zero(n: len ~mod- 1) + 1
}
mnibbles = 4
if lg >= 16 {
mnibbles = (lg + 3) / 4
}
this.write_bits!(n_bits: 2, bits: (mnibbles ~mod- 4) as base.u64, s: args.s)
this.write_bits!(n_bits: mnibbles ~mod* 4, bits: len ~mod- 1, s: args.s)
// Write ISUNCOMPRESSED bit.
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
this.jump_to_byte_boundary!(s: args.s)
if (masked_pos ~mod+ len) > (mask ~mod+ 1) {
len1 = (mask ~mod+ 1) ~mod- masked_pos
this.copy_rb_to_storage!(wb: args.wb, from: masked_pos, n: len1, s: args.s)
len ~mod-= len1
masked_pos = 0
}
this.copy_rb_to_storage!(wb: args.wb, from: masked_pos, n: len, s: args.s)
// We need to clear the next 4 bytes to continue to be compatible with
// BrotliWriteBits.
this.set_byte!(s: args.s, i: this.bw_ix >> 3, v: 0)
// Since the uncompressed block itself may not be the final block, add an
// empty one after this.
if args.is_final_block {
this.write_bits!(n_bits: 1, bits: 1, s: args.s) // islast
this.write_bits!(n_bits: 1, bits: 1, s: args.s) // isempty
this.jump_to_byte_boundary!(s: args.s)
}
}
// copy_rb_to_storage copies n bytes of the ring buffer, starting at its
// (masked) position from, to the storage at the (byte aligned) bit position
// this.bw_ix, and advances this.bw_ix.
pri func encoder.copy_rb_to_storage!(wb: roslice base.u8, from: base.u64, n: base.u64, s: slice base.u8) {
var src : roslice base.u8
var dst : slice base.u8
var a : base.u64
var b : base.u64
a = this.rb_buf_off ~mod+ args.from
b = this.bw_ix >> 3
if (a <= args.wb.length()) and (b <= args.s.length()) {
src = args.wb[a ..]
dst = args.s[b ..]
if (args.n <= src.length()) and (args.n <= dst.length()) {
dst.copy_from_slice!(s: src[.. args.n])
}
}
this.bw_ix ~mod+= args.n ~mod<< 3
}
// Mirrors StoreCommandExtra in brotli_bit_stream.c.
pri func encoder.store_command_extra!(wb: roslice base.u8, i: base.u64, s: slice base.u8) {
var copylen_code : base.u32
var insert_len : base.u32
var inscode : base.u32
var copycode : base.u32
var insnumextra : base.u32
var insextraval : base.u64
var copyextraval : base.u64
copylen_code = this.cmd_copy_len_code(wb: args.wb, i: args.i)
insert_len = this.cmd_insert_len(wb: args.wb, i: args.i)
inscode = this.get_insert_length_code(insertlen: insert_len as base.u64)
copycode = this.get_copy_length_code(copylen: copylen_code as base.u64)
insnumextra = INS_EXTRA[inscode.min(no_more_than: 23)]
insextraval = (insert_len ~mod- INS_BASE[inscode.min(no_more_than: 23)]) as base.u64
copyextraval = (copylen_code ~mod- COPY_BASE[copycode.min(no_more_than: 23)]) as base.u64
this.write_bits!(
n_bits: insnumextra + COPY_EXTRA[copycode.min(no_more_than: 23)],
bits: (copyextraval ~mod<< insnumextra) | insextraval,
s: args.s)
}
// Mirrors StoreVarLenUint8 in brotli_bit_stream.c.
pri func encoder.store_var_len_uint8!(n: base.u64, s: slice base.u8) {
var nbits : base.u32[..= 31]
if args.n == 0 {
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
} else {
nbits = this.log2_floor_non_zero(n: args.n)
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
this.write_bits!(n_bits: 3, bits: nbits as base.u64, s: args.s)
this.write_bits!(n_bits: nbits, bits: args.n ~mod- ((1 as base.u64) << nbits), s: args.s)
}
}
// Mirrors StoreSimpleHuffmanTree in brotli_bit_stream.c, with
// this.huff_depth as depths.
pri func encoder.store_simple_huffman_tree!(symbols: array[4] base.u32, num_symbols: base.u32, max_bits: base.u32, s: slice base.u8) {
var symbols : array[4] base.u32
var i : base.u32
var j : base.u32
var tmp : base.u32
symbols = args.symbols
// Value of 1 indicates a simple Huffman code.
this.write_bits!(n_bits: 2, bits: 1, s: args.s)
this.write_bits!(n_bits: 2, bits: (args.num_symbols ~mod- 1) as base.u64, s: args.s) // NSYM - 1.
// Sort.
i = 0
while i < args.num_symbols {
j = i ~mod+ 1
while j < args.num_symbols {
if this.huff_depth[symbols[j & 3] & 1023] < this.huff_depth[symbols[i & 3] & 1023] {
tmp = symbols[j & 3]
symbols[j & 3] = symbols[i & 3]
symbols[i & 3] = tmp
}
j ~mod+= 1
}
i ~mod+= 1
}
this.write_bits!(n_bits: args.max_bits, bits: symbols[0] as base.u64, s: args.s)
this.write_bits!(n_bits: args.max_bits, bits: symbols[1] as base.u64, s: args.s)
if args.num_symbols >= 3 {
this.write_bits!(n_bits: args.max_bits, bits: symbols[2] as base.u64, s: args.s)
}
if args.num_symbols >= 4 {
this.write_bits!(n_bits: args.max_bits, bits: symbols[3] as base.u64, s: args.s)
// Tree-select.
if this.huff_depth[symbols[0] & 1023] == 1 {
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
} else {
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
}
}
}
// Mirrors BuildAndStoreHuffmanTree in brotli_bit_stream.c, with
// this.huff_histo, this.huff_depth and this.huff_bits as the histogram, depth
// and bits arguments.
pri func encoder.build_and_store_huffman_tree!(histogram_length: base.u32, alphabet_size: base.u32, s: slice base.u8) {
var count : base.u32
var s4 : array[4] base.u32
var i : base.u32
var max_bits : base.u32
var max_bits_counter : base.u32
i = 0
while i < args.histogram_length {
if this.huff_histo[i & 1023] <> 0 {
if count < 4 {
s4[count] = i
} else if count > 4 {
break
}
count ~mod+= 1
}
i ~mod+= 1
}
max_bits_counter = args.alphabet_size ~mod- 1
while max_bits_counter > 0 {
max_bits_counter >>= 1
max_bits ~mod+= 1
}
if count <= 1 {
this.write_bits!(n_bits: 4, bits: 1, s: args.s)
this.write_bits!(n_bits: max_bits, bits: s4[0] as base.u64, s: args.s)
this.huff_depth[s4[0] & 1023] = 0
this.huff_bits[s4[0] & 1023] = 0
return nothing
}
i = 0
while i < args.histogram_length {
this.huff_depth[i & 1023] = 0
i ~mod+= 1
}
this.create_huffman_tree!(src: 2, off: 0, length: args.histogram_length, tree_limit: 15, depth: this.huff_depth[..])
this.convert_bit_depths_to_symbols!(depth: this.huff_depth[..], len: args.histogram_length, dst: 4)
if count <= 4 {
this.store_simple_huffman_tree!(symbols: s4, num_symbols: count, max_bits: max_bits, s: args.s)
} else {
this.store_huffman_tree!(depths: this.huff_depth[..], num: args.histogram_length, s: args.s)
}
}
// Mirrors BrotliBuildAndStoreHuffmanTreeFast in brotli_bit_stream.c, with
// this.huff_histo, this.huff_depth and this.huff_bits as the histogram, depth
// and bits arguments.
pri func encoder.build_and_store_huffman_tree_fast_generic!(histogram_total: base.u64, max_bits: base.u32, s: slice base.u8) {
var count : base.u32
var symbols : array[4] base.u32
var length : base.u32
var total : base.u64
var count_limit : base.u32
var n : base.u32
var l : base.u32
var h : base.u32
var i : base.u32
var j : base.u32
var tmp : base.u32
var depth_ok : base.bool
var value : base.u32
var prev_value : base.u32
var reps : base.u32
var k : base.u32
total = args.histogram_total
while (total <> 0) and (length < 1024) {
h = this.huff_histo[length]
if h <> 0 {
if count < 4 {
symbols[count] = length
}
count ~mod+= 1
total ~mod-= h as base.u64
}
length ~mod+= 1
}
if count <= 1 {
this.write_bits!(n_bits: 4, bits: 1, s: args.s)
this.write_bits!(n_bits: args.max_bits, bits: symbols[0] as base.u64, s: args.s)
this.huff_depth[symbols[0] & 1023] = 0
this.huff_bits[symbols[0] & 1023] = 0
return nothing
}
i = 0
while i < length {
this.huff_depth[i & 1023] = 0
i ~mod+= 1
}
count_limit = 1
while true {
n = 0
l = length
while l > 0 {
l -= 1
h = this.huff_histo[l & 1023]
if h <> 0 {
if h >= count_limit {
this.tree_count[n & 2047] = h
} else {
this.tree_count[n & 2047] = count_limit
}
this.tree_left[n & 2047] = TREE_NONE
this.tree_right[n & 2047] = (l & 0xFFFF) as base.u16
n ~mod+= 1
}
}
this.sort_huffman_tree_items!(n: n, tie_break: false)
this.merge_huffman_nodes!(n: n)
depth_ok = this.set_depth!(p0: (n ~mod* 2) ~mod- 1, depth: this.huff_depth[..], max_depth: 14)
if depth_ok {
break
}
count_limit ~mod*= 2
}
this.convert_bit_depths_to_symbols!(depth: this.huff_depth[..], len: length, dst: 4)
if count <= 4 {
// Value of 1 indicates a simple Huffman code.
this.write_bits!(n_bits: 2, bits: 1, s: args.s)
this.write_bits!(n_bits: 2, bits: (count ~mod- 1) as base.u64, s: args.s) // NSYM - 1.
// Sort.
i = 0
while i < count {
j = i ~mod+ 1
while j < count {
if this.huff_depth[symbols[j & 3] & 1023] < this.huff_depth[symbols[i & 3] & 1023] {
tmp = symbols[j & 3]
symbols[j & 3] = symbols[i & 3]
symbols[i & 3] = tmp
}
j ~mod+= 1
}
i ~mod+= 1
}
this.write_bits!(n_bits: args.max_bits, bits: symbols[0] as base.u64, s: args.s)
this.write_bits!(n_bits: args.max_bits, bits: symbols[1] as base.u64, s: args.s)
if count >= 3 {
this.write_bits!(n_bits: args.max_bits, bits: symbols[2] as base.u64, s: args.s)
}
if count >= 4 {
this.write_bits!(n_bits: args.max_bits, bits: symbols[3] as base.u64, s: args.s)
// Tree-select.
if this.huff_depth[symbols[0] & 1023] == 1 {
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
} else {
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
}
}
} else {
// Complex Huffman Tree.
this.write_bits!(n_bits: 40, bits: STATIC_CODE_LENGTH_CODE, s: args.s)
// Actual RLE coding.
prev_value = 8
i = 0
while i < length {
value = this.huff_depth[i & 1023] as base.u32
reps = 1
k = i ~mod+ 1
while k < length {
if (this.huff_depth[k & 1023] as base.u32) <> value {
break
}
reps ~mod+= 1
k ~mod+= 1
}
i ~mod+= reps
if value == 0 {
this.write_bits!(n_bits: ZERO_REPS_DEPTH[reps & 511], bits: ZERO_REPS_BITS[reps & 511], s: args.s)
} else {
if prev_value <> value {
this.write_bits!(n_bits: CODE_LENGTH_DEPTH[value & 15], bits: CODE_LENGTH_BITS[value & 15], s: args.s)
reps ~mod-= 1
}
if reps < 3 {
while reps <> 0 {
reps -= 1
this.write_bits!(n_bits: CODE_LENGTH_DEPTH[value & 15], bits: CODE_LENGTH_BITS[value & 15], s: args.s)
}
} else {
reps -= 3
this.write_bits!(n_bits: NON_ZERO_REPS_DEPTH[reps & 511], bits: NON_ZERO_REPS_BITS[reps & 511], s: args.s)
}
prev_value = value
}
}
}
}
// copy_huff_to_mb copies this.huff_depth[.. n] and this.huff_bits[.. n] to
// this.mb_lit_depth and this.mb_lit_bits (when cat is 0), this.mb_cmd_depth
// and this.mb_cmd_bits (when cat is 1) or this.mb_dist_depth and
// this.mb_dist_bits (when cat is 2).
pri func encoder.copy_huff_to_mb!(cat: base.u32, n: base.u32) {
var i : base.u32
i = 0
while i < args.n {
if args.cat == 0 {
this.mb_lit_depth[i & 255] = this.huff_depth[i & 1023]
this.mb_lit_bits[i & 255] = this.huff_bits[i & 1023]
} else if args.cat == 1 {
this.mb_cmd_depth[i & 1023] = this.huff_depth[i & 1023]
this.mb_cmd_bits[i & 1023] = this.huff_bits[i & 1023]
} else {
this.mb_dist_depth[i & 1023] = this.huff_depth[i & 1023]
this.mb_dist_bits[i & 1023] = this.huff_bits[i & 1023]
}
i ~mod+= 1
}
}
// load_huff_histo copies the first n elements of this.hist_lit (when cat is
// 0), this.hist_cmd (when cat is 1) or this.hist_dist (when cat is 2) to
// this.huff_histo.
pri func encoder.load_huff_histo!(cat: base.u32, n: base.u32) {
var i : base.u32
i = 0
while i < args.n {
if args.cat == 0 {
this.huff_histo[i & 1023] = this.hist_lit[i & 255]
} else if args.cat == 1 {
this.huff_histo[i & 1023] = this.hist_cmd[i & 1023]
} else {
this.huff_histo[i & 1023] = this.hist_dist[i & 1023]
}
i ~mod+= 1
}
}
// Mirrors BuildHistograms in brotli_bit_stream.c, into this.hist_lit,
// this.hist_cmd and this.hist_dist (with the C code's total_count_ values in
// this.hist_lit_total, etc).
pri func encoder.build_histograms!(wb: roslice base.u8, start_pos: base.u64, n_commands: base.u64) {
var pos : base.u64
var i : base.u64
var j : base.u32
var cmd_prefix : base.u16
var copy_len : base.u32
i = 0
while i < 1024 {
this.hist_cmd[i] = 0
this.hist_dist[i] = 0
if i < 256 {
this.hist_lit[i] = 0
}
i ~mod+= 1
}
this.hist_lit_total = 0
this.hist_cmd_total = 0
this.hist_dist_total = 0
pos = args.start_pos
i = 0
while i < args.n_commands {
cmd_prefix = this.cmd_cmd_prefix(wb: args.wb, i: i)
this.hist_cmd[cmd_prefix & 1023] ~mod+= 1
this.hist_cmd_total ~mod+= 1
j = this.cmd_insert_len(wb: args.wb, i: i)
while j > 0 {
this.hist_lit[this.rb_byte(wb: args.wb, pos: pos)] ~mod+= 1
this.hist_lit_total ~mod+= 1
pos ~mod+= 1
j -= 1
}
copy_len = this.cmd_copy_len(wb: args.wb, i: i)
pos ~mod+= copy_len as base.u64
if (copy_len <> 0) and (cmd_prefix >= 128) {
this.hist_dist[this.cmd_dist_prefix(wb: args.wb, i: i) & 0x3FF] ~mod+= 1
this.hist_dist_total ~mod+= 1
}
i ~mod+= 1
}
}
// Mirrors StoreDataWithHuffmanCodes in brotli_bit_stream.c. The depths and
// bits are this.mb_lit_depth and this.mb_lit_bits (etc) or, for the command
// and distance codes when static_codes is true, the C code's
// kStaticCommandCodeDepth (etc) tables.
pri func encoder.store_data_with_huffman_codes!(wb: roslice base.u8, start_pos: base.u64, n_commands: base.u64, static_codes: base.bool, s: slice base.u8) {
var pos : base.u64
var i : base.u64
var j : base.u32
var cmd_code : base.u32
var literal : base.u8
var copy_len : base.u32
var dist_prefix : base.u32
var dist_code : base.u32
pos = args.start_pos
i = 0
while i < args.n_commands {
cmd_code = (this.cmd_cmd_prefix(wb: args.wb, i: i) as base.u32) & 1023
if args.static_codes {
this.write_bits!(
n_bits: STATIC_COMMAND_CODE_DEPTH[cmd_code.min(no_more_than: 703)] as base.u32,
bits: STATIC_COMMAND_CODE_BITS[cmd_code.min(no_more_than: 703)] as base.u64,
s: args.s)
} else {
this.write_bits!(
n_bits: this.mb_cmd_depth[cmd_code] as base.u32,
bits: this.mb_cmd_bits[cmd_code] as base.u64,
s: args.s)
}
this.store_command_extra!(wb: args.wb, i: i, s: args.s)
j = this.cmd_insert_len(wb: args.wb, i: i)
while j > 0 {
literal = this.rb_byte(wb: args.wb, pos: pos)
this.write_bits!(
n_bits: this.mb_lit_depth[literal] as base.u32,
bits: this.mb_lit_bits[literal] as base.u64,
s: args.s)
pos ~mod+= 1
j -= 1
}
copy_len = this.cmd_copy_len(wb: args.wb, i: i)
pos ~mod+= copy_len as base.u64
if (copy_len <> 0) and (cmd_code >= 128) {
dist_prefix = this.cmd_dist_prefix(wb: args.wb, i: i) as base.u32
dist_code = dist_prefix & 0x3FF
if args.static_codes {
this.write_bits!(
n_bits: STATIC_DISTANCE_CODE_DEPTH[dist_code & 63] as base.u32,
bits: STATIC_DISTANCE_CODE_BITS[dist_code & 63] as base.u64,
s: args.s)
} else {
this.write_bits!(
n_bits: this.mb_dist_depth[dist_code] as base.u32,
bits: this.mb_dist_bits[dist_code] as base.u64,
s: args.s)
}
this.write_bits!(
n_bits: dist_prefix >> 10,
bits: this.cmd_dist_extra(wb: args.wb, i: i) as base.u64,
s: args.s)
}
i ~mod+= 1
}
}
// Mirrors BrotliStoreMetaBlockTrivial in brotli_bit_stream.c.
pri func encoder.store_meta_block_trivial!(wb: roslice base.u8, start_pos: base.u64, length: base.u64, is_last: base.bool, n_commands: base.u64, s: slice base.u8) {
this.store_compressed_meta_block_header!(is_final_block: args.is_last, length: args.length, s: args.s)
this.build_histograms!(wb: args.wb, start_pos: args.start_pos, n_commands: args.n_commands)
this.write_bits!(n_bits: 13, bits: 0, s: args.s)
this.load_huff_histo!(cat: 0, n: 256)
this.build_and_store_huffman_tree!(histogram_length: 256, alphabet_size: 256, s: args.s)
this.copy_huff_to_mb!(cat: 0, n: 256)
this.load_huff_histo!(cat: 1, n: 704)
this.build_and_store_huffman_tree!(histogram_length: 704, alphabet_size: 704, s: args.s)
this.copy_huff_to_mb!(cat: 1, n: 704)
// MAX_SIMPLE_DISTANCE_ALPHABET_SIZE is 140.
this.load_huff_histo!(cat: 2, n: 140)
this.build_and_store_huffman_tree!(histogram_length: 140, alphabet_size: this.dist_alphabet_size_max, s: args.s)
this.copy_huff_to_mb!(cat: 2, n: 140)
this.store_data_with_huffman_codes!(wb: args.wb, start_pos: args.start_pos, n_commands: args.n_commands, static_codes: false, s: args.s)
if args.is_last {
this.jump_to_byte_boundary!(s: args.s)
}
}
// Mirrors BrotliStoreMetaBlockFast in brotli_bit_stream.c.
pri func encoder.store_meta_block_fast!(wb: roslice base.u8, start_pos: base.u64, length: base.u64, is_last: base.bool, n_commands: base.u64, s: slice base.u8) {
var distance_alphabet_bits : base.u32
var pos : base.u64
var num_literals : base.u64
var i : base.u64
var j : base.u32
distance_alphabet_bits = this.log2_floor_non_zero(n: (this.dist_alphabet_size_max ~mod- 1) as base.u64) + 1
this.store_compressed_meta_block_header!(is_final_block: args.is_last, length: args.length, s: args.s)
this.write_bits!(n_bits: 13, bits: 0, s: args.s)
if args.n_commands <= 128 {
i = 0
while i < 1024 {
this.huff_histo[i] = 0
i ~mod+= 1
}
pos = args.start_pos
i = 0
while i < args.n_commands {
j = this.cmd_insert_len(wb: args.wb, i: i)
num_literals ~mod+= j as base.u64
while j > 0 {
this.huff_histo[this.rb_byte(wb: args.wb, pos: pos)] ~mod+= 1
pos ~mod+= 1
j -= 1
}
pos ~mod+= this.cmd_copy_len(wb: args.wb, i: i) as base.u64
i ~mod+= 1
}
this.build_and_store_huffman_tree_fast_generic!(histogram_total: num_literals, max_bits: 8, s: args.s)
this.copy_huff_to_mb!(cat: 0, n: 256)
// StoreStaticCommandHuffmanTree.
this.write_bits!(n_bits: 56, bits: STATIC_COMMAND_TREE_BITS, s: args.s)
this.write_bits!(n_bits: STATIC_COMMAND_TREE_NUM_BITS_2, bits: STATIC_COMMAND_TREE_BITS_2, s: args.s)
// StoreStaticDistanceHuffmanTree.
this.write_bits!(n_bits: STATIC_DISTANCE_TREE_NUM_BITS, bits: STATIC_DISTANCE_TREE_BITS, s: args.s)
this.store_data_with_huffman_codes!(wb: args.wb, start_pos: args.start_pos, n_commands: args.n_commands, static_codes: true, s: args.s)
} else {
this.build_histograms!(wb: args.wb, start_pos: args.start_pos, n_commands: args.n_commands)
this.load_huff_histo!(cat: 0, n: 256)
this.build_and_store_huffman_tree_fast_generic!(histogram_total: this.hist_lit_total, max_bits: 8, s: args.s)
this.copy_huff_to_mb!(cat: 0, n: 256)
this.load_huff_histo!(cat: 1, n: 704)
this.build_and_store_huffman_tree_fast_generic!(histogram_total: this.hist_cmd_total, max_bits: 10, s: args.s)
this.copy_huff_to_mb!(cat: 1, n: 704)
this.load_huff_histo!(cat: 2, n: 544)
this.build_and_store_huffman_tree_fast_generic!(histogram_total: this.hist_dist_total, max_bits: distance_alphabet_bits, s: args.s)
this.copy_huff_to_mb!(cat: 2, n: 544)
this.store_data_with_huffman_codes!(wb: args.wb, start_pos: args.start_pos, n_commands: args.n_commands, static_codes: false, s: args.s)
}
if args.is_last {
this.jump_to_byte_boundary!(s: args.s)
}
}
// Mirrors BlockLengthPrefixCode in brotli_bit_stream.c.
pri func encoder.block_length_prefix_code(len: base.u32) base.u32[..= 25] {
var code : base.u32[..= 25]
code = 0
if args.len >= 177 {
code = 14
if args.len >= 753 {
code = 20
}
} else if args.len >= 41 {
code = 7
}
while code < 25 {
if args.len < BLOCK_LENGTH_OFFSETS[code + 1] {
break
}
code += 1
}
return code
}
// Mirrors NextBlockTypeCode in brotli_bit_stream.c, for category c's block
// encoder's calculator (when c is 0, 1 or 2) or for a local calculator (when
// c is 3).
pri func encoder.next_block_type_code!(c: base.u32[..= 3], block_type: base.u32) base.u32 {
var type_code : base.u32
if args.block_type == (this.be_last_type[args.c] ~mod+ 1) {
type_code = 1
} else if args.block_type == this.be_second_last_type[args.c] {
type_code = 0
} else {
type_code = args.block_type ~mod+ 2
}
this.be_second_last_type[args.c] = this.be_last_type[args.c]
this.be_last_type[args.c] = args.block_type
return type_code
}
// Mirrors StoreBlockSwitch in brotli_bit_stream.c, for category c's block
// encoder.
pri func encoder.store_block_switch!(c: base.u32[..= 3], block_len: base.u32, block_type: base.u32, is_first_block: base.bool, s: slice base.u8) {
var typecode : base.u32
var lencode : base.u32[..= 25]
typecode = this.next_block_type_code!(c: args.c, block_type: args.block_type)
if not args.is_first_block {
this.write_bits!(
n_bits: this.be_type_depth[(args.c << 9) | (typecode & 511)] as base.u32,
bits: this.be_type_bits[(args.c << 9) | (typecode & 511)] as base.u64,
s: args.s)
}
lencode = this.block_length_prefix_code(len: args.block_len)
this.write_bits!(
n_bits: this.be_length_depth[(args.c << 5) | lencode] as base.u32,
bits: this.be_length_bits[(args.c << 5) | lencode] as base.u64,
s: args.s)
this.write_bits!(
n_bits: BLOCK_LENGTH_NBITS[lencode],
bits: (args.block_len ~mod- BLOCK_LENGTH_OFFSETS[lencode]) as base.u64,
s: args.s)
}
// Mirrors BuildAndStoreBlockSplitCode in brotli_bit_stream.c (via
// BuildAndStoreBlockSwitchEntropyCodes), for category c's block encoder.
pri func encoder.build_and_store_block_split_code!(wb: roslice base.u8, c: base.u32[..= 3], s: slice base.u8) {
var num_types : base.u32[..= 256]
var num_blocks : base.u64
var i : base.u64
var j : base.u32
var type_code : base.u32
var lencode : base.u32[..= 25]
num_types = this.be_num_block_types[args.c].min(no_more_than: 256)
num_blocks = this.be_num_blocks[args.c]
// type_histo (num_types + 2 elements) is this.huff_histo[0 .. 258] and
// length_histo (26 elements) is this.huff_histo[512 .. 538].
j = 0
while j < 538 {
this.huff_histo[j] = 0
j ~mod+= 1
}
this.be_last_type[3] = 1
this.be_second_last_type[3] = 0
i = 0
while i < num_blocks {
type_code = this.next_block_type_code!(c: 3,
block_type: this.byte_at(s: args.wb, i: this.gbs_types_off[args.c] ~mod+ i) as base.u32)
if i <> 0 {
this.huff_histo[type_code & 511] ~mod+= 1
}
lencode = this.block_length_prefix_code(
len: this.load32le(s: args.wb, i: this.gbs_lengths_off[args.c] ~mod+ (i ~mod* 4)))
this.huff_histo[512 + lencode] ~mod+= 1
i ~mod+= 1
}
this.store_var_len_uint8!(n: (num_types ~mod- 1) as base.u64, s: args.s)
if num_types > 1 {
this.build_and_store_huffman_tree!(histogram_length: num_types + 2, alphabet_size: num_types + 2, s: args.s)
j = 0
while j < (num_types + 2) {
this.be_type_depth[(args.c << 9) | (j & 511)] = this.huff_depth[j & 1023]
this.be_type_bits[(args.c << 9) | (j & 511)] = this.huff_bits[j & 1023]
j ~mod+= 1
}
j = 0
while j < 26 {
this.huff_histo[j] = this.huff_histo[512 + j]
j ~mod+= 1
}
this.build_and_store_huffman_tree!(histogram_length: 26, alphabet_size: 26, s: args.s)
j = 0
while j < 26 {
this.be_length_depth[(args.c << 5) | j] = this.huff_depth[j]
this.be_length_bits[(args.c << 5) | j] = this.huff_bits[j]
j ~mod+= 1
}
this.store_block_switch!(c: args.c,
block_len: this.load32le(s: args.wb, i: this.gbs_lengths_off[args.c]),
block_type: this.byte_at(s: args.wb, i: this.gbs_types_off[args.c]) as base.u32,
is_first_block: true,
s: args.s)
}
}
// Mirrors StoreTrivialContextMap in brotli_bit_stream.c.
pri func encoder.store_trivial_context_map!(num_types: base.u64, context_bits: base.u32[..= 6], s: slice base.u8) {
var repeat_code : base.u32
var repeat_bits : base.u64
var alphabet_size : base.u32
var i : base.u32
var code : base.u32
this.store_var_len_uint8!(n: args.num_types ~mod- 1, s: args.s)
if args.num_types > 1 {
repeat_code = args.context_bits ~mod- 1
repeat_bits = ((1 as base.u64) << (repeat_code & 31)) ~mod- 1
alphabet_size = ((args.num_types & 0x3FF) as base.u32) ~mod+ repeat_code
i = 0
while i < alphabet_size {
this.huff_histo[i & 1023] = 0
i ~mod+= 1
}
// Write RLEMAX.
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
this.write_bits!(n_bits: 4, bits: (repeat_code ~mod- 1) as base.u64, s: args.s)
this.huff_histo[repeat_code & 1023] = (args.num_types & 0xFFFF_FFFF) as base.u32
this.huff_histo[0] = 1
i = args.context_bits
while i < alphabet_size {
this.huff_histo[i & 1023] = 1
i ~mod+= 1
}
this.build_and_store_huffman_tree!(histogram_length: alphabet_size, alphabet_size: alphabet_size, s: args.s)
i = 0
while (i as base.u64) < args.num_types {
code = 0
if i <> 0 {
code = (i ~mod+ args.context_bits) ~mod- 1
}
this.write_bits!(
n_bits: this.huff_depth[code & 1023] as base.u32,
bits: this.huff_bits[code & 1023] as base.u64,
s: args.s)
this.write_bits!(
n_bits: this.huff_depth[repeat_code & 1023] as base.u32,
bits: this.huff_bits[repeat_code & 1023] as base.u64,
s: args.s)
this.write_bits!(n_bits: repeat_code, bits: repeat_bits, s: args.s)
i ~mod+= 1
}
// Write IMTF (inverse-move-to-front) bit.
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
}
}
// Mirrors EncodeContextMap in brotli_bit_stream.c (with MoveToFrontTransform
// and RunLengthCodeZeros), for the literal context map: this.mb_cmap_size u8
// values at the this.mb_cmap_off workbuf offset. The C code's rle_symbols
// are u32le values at the this.mb_rle_off workbuf offset.
pri func encoder.encode_context_map!(wb: slice base.u8, num_clusters: base.u64, s: slice base.u8) {
var size : base.u64
var i : base.u64
var k : base.u64
var max_value : base.u32[..= 255]
var v : base.u32
var vb : base.u32[..= 255]
var index : base.u32
var mtf_size : base.u32[..= 256]
var max_reps : base.u32
var reps : base.u32
var max_prefix : base.u32
var max_run_length_prefix : base.u32[..= 6]
var out_size : base.u64
var run_length_prefix : base.u32
var extra_bits : base.u32
var rle_symbol : base.u32
var j : base.u32
this.store_var_len_uint8!(n: args.num_clusters ~mod- 1, s: args.s)
if args.num_clusters == 1 {
return nothing
}
size = this.mb_cmap_size
// MoveToFrontTransform.
if size <> 0 {
max_value = 0
i = 0
while i < size {
vb = this.byte_at(s: args.wb, i: this.mb_cmap_off ~mod+ i) as base.u32
if vb > max_value {
max_value = vb
}
i ~mod+= 1
}
j = 0
while j <= max_value {
this.mtf[j & 255] = (j & 0xFF) as base.u8
j ~mod+= 1
}
mtf_size = max_value + 1
i = 0
while i < size {
v = this.byte_at(s: args.wb, i: this.mb_cmap_off ~mod+ i) as base.u32
index = 0
while index < mtf_size {
if (this.mtf[index & 255] as base.u32) == v {
break
}
index ~mod+= 1
}
this.poke_u32!(s: args.wb, i: this.mb_rle_off ~mod+ (i ~mod* 4), v: index)
// MoveToFront.
j = index
while j > 0 {
this.mtf[j & 255] = this.mtf[(j - 1) & 255]
j -= 1
}
this.mtf[0] = (v & 0xFF) as base.u8
i ~mod+= 1
}
}
// RunLengthCodeZeros.
i = 0
while i < size {
reps = 0
while (i < size) and (this.rle_sym(wb: args.wb, i: i) <> 0) {
i ~mod+= 1
}
while (i < size) and (this.rle_sym(wb: args.wb, i: i) == 0) {
reps ~mod+= 1
i ~mod+= 1
}
max_reps = max_reps.max(no_less_than: reps)
}
max_prefix = 0
if max_reps > 0 {
max_prefix = this.log2_floor_non_zero(n: max_reps as base.u64)
}
max_run_length_prefix = max_prefix.min(no_more_than: 6)
max_prefix = max_run_length_prefix
out_size = 0
i = 0
while i < size {
v = this.rle_sym(wb: args.wb, i: i)
if v <> 0 {
this.poke_u32!(s: args.wb, i: this.mb_rle_off ~mod+ (out_size ~mod* 4), v: v ~mod+ max_run_length_prefix)
i ~mod+= 1
out_size ~mod+= 1
} else {
reps = 1
k = i ~mod+ 1
while (k < size) and (this.rle_sym(wb: args.wb, i: k) == 0) {
reps ~mod+= 1
k ~mod+= 1
}
i ~mod+= reps as base.u64
while reps <> 0 {
if reps < ((2 as base.u32) << (max_prefix & 7)) {
run_length_prefix = this.log2_floor_non_zero(n: reps as base.u64)
extra_bits = reps ~mod- ((1 as base.u32) << run_length_prefix)
this.poke_u32!(s: args.wb, i: this.mb_rle_off ~mod+ (out_size ~mod* 4),
v: run_length_prefix ~mod+ (extra_bits ~mod<< 9))
out_size ~mod+= 1
break
} else {
extra_bits = ((1 as base.u32) << (max_prefix & 7)) ~mod- 1
this.poke_u32!(s: args.wb, i: this.mb_rle_off ~mod+ (out_size ~mod* 4),
v: max_prefix ~mod+ (extra_bits ~mod<< 9))
reps ~mod-= ((2 as base.u32) << (max_prefix & 7)) ~mod- 1
out_size ~mod+= 1
}
}
}
}
j = 0
while j < 272 {
this.huff_histo[j] = 0
j ~mod+= 1
}
i = 0
while i < out_size {
this.huff_histo[this.rle_sym(wb: args.wb, i: i) & 511] ~mod+= 1
i ~mod+= 1
}
if max_run_length_prefix > 0 {
this.write_bits!(n_bits: 1, bits: 1, s: args.s)
this.write_bits!(n_bits: 4, bits: (max_run_length_prefix - 1) as base.u64, s: args.s)
} else {
this.write_bits!(n_bits: 1, bits: 0, s: args.s)
}
this.build_and_store_huffman_tree!(
histogram_length: ((args.num_clusters & 0x3FF) as base.u32) + max_run_length_prefix,
alphabet_size: ((args.num_clusters & 0x3FF) as base.u32) + max_run_length_prefix,
s: args.s)
i = 0
while i < out_size {
v = this.rle_sym(wb: args.wb, i: i)
rle_symbol = v & 511
this.write_bits!(
n_bits: this.huff_depth[rle_symbol] as base.u32,
bits: this.huff_bits[rle_symbol] as base.u64,
s: args.s)
if (rle_symbol > 0) and (rle_symbol <= max_run_length_prefix) {
this.write_bits!(n_bits: rle_symbol, bits: (v >> 9) as base.u64, s: args.s)
}
i ~mod+= 1
}
this.write_bits!(n_bits: 1, bits: 1, s: args.s) // use move-to-front
}
// rle_sym returns rle_symbols[i], the u32le at the this.mb_rle_off workbuf
// offset (plus 4 * i).
pri func encoder.rle_sym(wb: roslice base.u8, i: base.u64) base.u32 {
return this.load32le(s: args.wb, i: this.mb_rle_off ~mod+ (args.i ~mod* 4))
}
// Mirrors InitBlockEncoder in brotli_bit_stream.c, for category c, whose
// split is the greedy block splitter's.
pri func encoder.init_block_encoder!(wb: roslice base.u8, c: base.u32[..= 3], histogram_length: base.u32) {
this.be_histogram_length[args.c] = args.histogram_length
this.be_num_block_types[args.c] = this.gbs_num_types[args.c]
this.be_num_blocks[args.c] = this.gbs_split_num_blocks[args.c]
this.be_last_type[args.c] = 1
this.be_second_last_type[args.c] = 0
this.be_block_ix[args.c] = 0
this.be_block_len[args.c] = 0
if this.be_num_blocks[args.c] <> 0 {
this.be_block_len[args.c] = this.load32le(s: args.wb, i: this.gbs_lengths_off[args.c])
}
this.be_entropy_ix[args.c] = 0
}
// Mirrors FN(BuildAndStoreEntropyCodes) in block_encoder_inc.h, for category
// c: building and storing a Huffman code for each of its histograms, into
// the block encoder's depths_ and bits_ tables (at the this.be_depth_off[c]
// and this.be_bits_off[c] workbuf offsets, as u8 and u16le values).
pri func encoder.build_and_store_entropy_codes!(wb: slice base.u8, c: base.u32[..= 3], alphabet_size: base.u32, s: slice base.u8) {
var hlen : base.u32
var i : base.u64
var j : base.u32
var ix : base.u64
var hoff : base.u64
hlen = this.be_histogram_length[args.c].min(no_more_than: 1024)
i = 0
while i < this.gbs_histograms_size[args.c] {
hoff = this.gbs_histo_off(c: args.c, ix: i)
j = 0
while j < hlen {
this.huff_histo[j & 1023] = this.load32le(s: args.wb, i: hoff ~mod+ ((j as base.u64) * 4))
j ~mod+= 1
}
this.build_and_store_huffman_tree!(histogram_length: hlen, alphabet_size: args.alphabet_size, s: args.s)
ix = i ~mod* (hlen as base.u64)
j = 0
while j < hlen {
this.set_byte!(s: args.wb, i: (this.be_depth_off[args.c] ~mod+ ix) ~mod+ (j as base.u64), v: this.huff_depth[j & 1023])
this.poke_u16!(s: args.wb, i: this.be_bits_off[args.c] ~mod+ ((ix ~mod+ (j as base.u64)) ~mod* 2), v: this.huff_bits[j & 1023])
j ~mod+= 1
}
i ~mod+= 1
}
}
// Mirrors StoreSymbol and StoreSymbolWithContext in brotli_bit_stream.c. For
// StoreSymbolWithContext (with_context is true), the context map is the
// literal context map (the only context map below quality 10) and the
// context bits are 6.
pri func encoder.store_symbol!(wb: roslice base.u8, c: base.u32[..= 3], symbol: base.u64, with_context: base.bool, context: base.u64, s: slice base.u8) {
var block_ix : base.u64
var block_len : base.u32
var block_type : base.u32
var histo_ix : base.u64
var ix : base.u64
if this.be_block_len[args.c] == 0 {
block_ix = this.be_block_ix[args.c] ~mod+ 1
this.be_block_ix[args.c] = block_ix
block_len = this.load32le(s: args.wb, i: this.gbs_lengths_off[args.c] ~mod+ (block_ix ~mod* 4))
block_type = this.byte_at(s: args.wb, i: this.gbs_types_off[args.c] ~mod+ block_ix) as base.u32
this.be_block_len[args.c] = block_len
if args.with_context {
this.be_entropy_ix[args.c] = (block_type as base.u64) << 6
} else {
this.be_entropy_ix[args.c] = (block_type as base.u64) * (this.be_histogram_length[args.c] as base.u64)
}
this.store_block_switch!(c: args.c, block_len: block_len, block_type: block_type, is_first_block: false, s: args.s)
}
this.be_block_len[args.c] ~mod-= 1
if args.with_context {
histo_ix = this.byte_at(s: args.wb, i: (this.mb_cmap_off ~mod+ this.be_entropy_ix[args.c]) ~mod+ args.context) as base.u64
ix = (histo_ix * (this.be_histogram_length[args.c] as base.u64)) ~mod+ args.symbol
} else {
ix = this.be_entropy_ix[args.c] ~mod+ args.symbol
}
this.write_bits!(
n_bits: this.byte_at(s: args.wb, i: this.be_depth_off[args.c] ~mod+ ix) as base.u32,
bits: this.peek_u16(s: args.wb, i: this.be_bits_off[args.c] ~mod+ (ix ~mod* 2)) as base.u64,
s: args.s)
}
// Mirrors BrotliStoreMetaBlock in brotli_bit_stream.c, for the metablock
// split made by build_meta_block_greedy (whose distance context map is
// always empty) and a CONTEXT_UTF8 literal context mode.
pri func encoder.store_meta_block!(wb: slice base.u8, start_pos: base.u64, length: base.u64, prev_byte: base.u8, prev_byte2: base.u8,
is_last: base.bool, n_commands: base.u64, s: slice base.u8) {
var pos : base.u64
var prev_byte : base.u8
var prev_byte2 : base.u8
var i : base.u64
var j : base.u32
var cmd_prefix : base.u16
var copy_len : base.u32
var literal : base.u8
var context : base.u32
var dist_prefix : base.u32
pos = args.start_pos
prev_byte = args.prev_byte
prev_byte2 = args.prev_byte2
this.store_compressed_meta_block_header!(is_final_block: args.is_last, length: args.length, s: args.s)
this.init_block_encoder!(wb: args.wb, c: 0, histogram_length: 256)
this.init_block_encoder!(wb: args.wb, c: 1, histogram_length: 704)
this.init_block_encoder!(wb: args.wb, c: 2, histogram_length: this.dist_alphabet_size_limit)
this.build_and_store_block_split_code!(wb: args.wb, c: 0, s: args.s)
this.build_and_store_block_split_code!(wb: args.wb, c: 1, s: args.s)
this.build_and_store_block_split_code!(wb: args.wb, c: 2, s: args.s)
this.write_bits!(n_bits: 2, bits: this.distance_postfix_bits as base.u64, s: args.s)
this.write_bits!(n_bits: 4, bits: (this.num_direct_distance_codes >> (this.distance_postfix_bits & 3)) as base.u64, s: args.s)
j = 0
while j < this.gbs_num_types[0] {
// CONTEXT_UTF8 is 2.
this.write_bits!(n_bits: 2, bits: 2, s: args.s)
j ~mod+= 1
}
if this.mb_cmap_size == 0 {
this.store_trivial_context_map!(num_types: this.gbs_histograms_size[0], context_bits: 6, s: args.s)
} else {
this.encode_context_map!(wb: args.wb, num_clusters: this.gbs_histograms_size[0], s: args.s)
}
this.store_trivial_context_map!(num_types: this.gbs_histograms_size[2], context_bits: 2, s: args.s)
this.build_and_store_entropy_codes!(wb: args.wb, c: 0, alphabet_size: 256, s: args.s)
this.build_and_store_entropy_codes!(wb: args.wb, c: 1, alphabet_size: 704, s: args.s)
this.build_and_store_entropy_codes!(wb: args.wb, c: 2, alphabet_size: this.dist_alphabet_size_max, s: args.s)
i = 0
while i < args.n_commands {
cmd_prefix = this.cmd_cmd_prefix(wb: args.wb, i: i)
this.store_symbol!(wb: args.wb, c: 1, symbol: cmd_prefix as base.u64, with_context: false, context: 0, s: args.s)
this.store_command_extra!(wb: args.wb, i: i, s: args.s)
j = this.cmd_insert_len(wb: args.wb, i: i)
if this.mb_cmap_size == 0 {
while j > 0 {
this.store_symbol!(wb: args.wb, c: 0, symbol: this.rb_byte(wb: args.wb, pos: pos) as base.u64,
with_context: false, context: 0, s: args.s)
pos ~mod+= 1
j -= 1
}
} else {
while j > 0 {
context = (CONTEXT_LOOKUP[1024 + (prev_byte as base.u32)] |
CONTEXT_LOOKUP[1280 + (prev_byte2 as base.u32)]) as base.u32
literal = this.rb_byte(wb: args.wb, pos: pos)
this.store_symbol!(wb: args.wb, c: 0, symbol: literal as base.u64,
with_context: true, context: context as base.u64, s: args.s)
prev_byte2 = prev_byte
prev_byte = literal
pos ~mod+= 1
j -= 1
}
}
copy_len = this.cmd_copy_len(wb: args.wb, i: i)
pos ~mod+= copy_len as base.u64
if copy_len <> 0 {
prev_byte2 = this.rb_byte(wb: args.wb, pos: pos ~mod- 2)
prev_byte = this.rb_byte(wb: args.wb, pos: pos ~mod- 1)
if cmd_prefix >= 128 {
dist_prefix = this.cmd_dist_prefix(wb: args.wb, i: i) as base.u32
this.store_symbol!(wb: args.wb, c: 2, symbol: (dist_prefix & 0x3FF) as base.u64,
with_context: false, context: 0, s: args.s)
this.write_bits!(
n_bits: dist_prefix >> 10,
bits: this.cmd_dist_extra(wb: args.wb, i: i) as base.u64,
s: args.s)
}
}
i ~mod+= 1
}
if args.is_last {
this.jump_to_byte_boundary!(s: args.s)
}
}
+266 -38
View File
@@ -50,8 +50,10 @@ pri const OP_FINISH : base.u32 = 2
pri const OP_EMIT_METADATA : base.u32 = 3
// The C code's BrotliEncoderFlintState values, as two's complement u32s.
pri const FLINT_NEEDS_2_BYTES : base.u32 = 2
pri const FLINT_DONE : base.u32 = 0xFFFF_FFFF
pri const FLINT_NEEDS_2_BYTES : base.u32 = 2
pri const FLINT_WAITING_FOR_PROCESSING : base.u32 = 0
pri const FLINT_WAITING_FOR_FLUSHING : base.u32 = 0xFFFF_FFFF
pri const FLINT_DONE : base.u32 = 0xFFFF_FFFE
// STORAGE_SLACK is how many bytes the storage (the workbuf) needs on top of
// the C code's (2 * block_size + 503) bytes for a metablock: the 8-byte
@@ -91,7 +93,7 @@ pub struct encoder? implements base.io_transformer(
num_direct_distance_codes : base.u32,
// The C code's BrotliEncoderState fields of the same name.
dist_cache : array[4] base.u32,
dist_cache : array[16] base.u32,
saved_dist_cache : array[4] base.u32,
flint : base.u32,
last_bytes : base.u32[..= 0xFFFF],
@@ -125,9 +127,79 @@ pub struct encoder? implements base.io_transformer(
num_commands : base.u32,
num_literals : base.u32,
// The C code's BrotliEncoderState fields (input_pos_, etc) for
// qualities 2 and above.
input_pos : base.u64,
last_processed_pos : base.u64,
last_flush_pos : base.u64,
prev_byte : base.u8,
prev_byte2 : base.u8,
is_last_block_emitted : base.bool,
last_insert_len : base.u64,
num_cmds : base.u64,
num_lits : base.u64,
// The workbuf layout (see encode_data.wuffs). The storage is at
// offset 0.
workbuf_end : base.u64,
cmds_off : base.u64,
cmds_cap : base.u64,
// The C code's RingBuffer fields. The ring buffer's data_ and
// buffer_ are at the rb_off and rb_buf_off workbuf offsets.
rb_off : base.u64,
rb_buf_off : base.u64,
rb_size : base.u32,
rb_mask : base.u32,
rb_tail_size : base.u32,
rb_total_size : base.u32,
rb_cur_size : base.u32,
rb_pos : base.u32,
// The C code's BrotliDistanceParams fields (other than
// distance_postfix_bits and num_direct_distance_codes).
dist_alphabet_size_max : base.u32,
dist_alphabet_size_limit : base.u32,
dist_max_distance : base.u64,
// The hasher (the C code's Hasher and HasherCommon). See
// encode_hasher.wuffs.
hasher_type : base.u32,
h_bucket_bits : base.u32[..= 24],
h_block_bits : base.u32[..= 16],
h_num_last_distances : base.u32[..= 16],
h_off0 : base.u64,
h_off1 : base.u64,
h_off2 : base.u64,
h_is_setup : base.bool,
h_is_prepared : base.bool,
dict_num_lookups : base.u64,
dict_num_matches : base.u64,
fc_max_hops : base.u64,
// The C code's HasherSearchResult.
sr_len : base.u64,
sr_distance : base.u64,
sr_score : base.u64,
sr_len_code_delta : base.u64,
// The total_count_ of the BuildHistograms histograms.
hist_lit_total : base.u64,
hist_cmd_total : base.u64,
hist_dist_total : base.u64,
// The literal context map and EncodeContextMap's rle_symbols (see
// encode_metablock_greedy.wuffs and encode_bit_stream.wuffs).
mb_comb_off : base.u64,
mb_cmap_off : base.u64,
mb_cmap_size : base.u64,
mb_rle_off : base.u64,
sf : softfloat.arith,
util : base.utility,
) + (
bc : bit_cost,
// tiny_buf is the C code's tiny_buf_ (plus slack for the 8-byte
// stores of write_bits).
tiny_buf : array[32] base.u8,
@@ -147,9 +219,83 @@ pub struct encoder? implements base.io_transformer(
tmp_bits : array[64] base.u16,
// The C code's HuffmanTree pool. See encode_entropy.wuffs.
tree_count : array[1024] base.u32,
tree_left : array[1024] base.u16,
tree_right : array[1024] base.u16,
tree_count : array[2048] base.u32,
tree_left : array[2048] base.u16,
tree_right : array[2048] base.u16,
// The histogram, depth and bits arguments of the generic
// build_and_store_huffman_tree (and of create_huffman_tree and
// convert_bit_depths_to_symbols, for src 2 and dst 4).
huff_histo : array[1024] base.u32,
huff_depth : array[1024] base.u8,
huff_bits : array[1024] base.u16,
// The BuildHistograms histograms and the depths and bits of the
// StoreMetaBlockTrivial and StoreMetaBlockFast Huffman codes.
hist_lit : array[256] base.u32,
hist_cmd : array[1024] base.u32,
hist_dist : array[1024] base.u32,
mb_lit_depth : array[256] base.u8,
mb_lit_bits : array[256] base.u16,
mb_cmd_depth : array[1024] base.u8,
mb_cmd_bits : array[1024] base.u16,
mb_dist_depth : array[1024] base.u8,
mb_dist_bits : array[1024] base.u16,
// The forgetful chain hashers' free_slot_idx.
fc_free_slot_idx : array[512] base.u16,
// The greedy block splitter's state, indexed by block category. See
// encode_metablock_greedy.wuffs.
gbs_alphabet_size : array[4] base.u32,
gbs_data_size : array[4] base.u32,
gbs_num_contexts : array[4] base.u32,
gbs_max_block_types : array[4] base.u32,
gbs_min_block_size : array[4] base.u32,
gbs_split_threshold : array[4] base.u64,
gbs_num_blocks : array[4] base.u64,
gbs_num_types : array[4] base.u32,
gbs_split_num_blocks : array[4] base.u64,
gbs_histograms_size : array[4] base.u64,
gbs_target_block_size : array[4] base.u64,
gbs_block_size : array[4] base.u64,
gbs_curr_histogram_ix : array[4] base.u64,
gbs_merge_last_count : array[4] base.u64,
gbs_types_off : array[4] base.u64,
gbs_lengths_off : array[4] base.u64,
gbs_histo_off_base : array[4] base.u64,
gbs_last_histogram_ix : array[8] base.u64,
gbs_last_entropy : array[128] base.u64,
gbs_entropy_tmp : array[16] base.u64,
gbs_comb_entropy : array[32] base.u64,
// BrotliOptimizeHistograms' good_for_rle.
good_for_rle : array[1024] base.u8,
// The BrotliStoreMetaBlock block encoders' state (the C code's
// BlockEncoder and BlockSplitCode), indexed by block category (with
// index 3 for a local BlockTypeCodeCalculator).
be_histogram_length : array[4] base.u32,
be_num_block_types : array[4] base.u32,
be_num_blocks : array[4] base.u64,
be_block_ix : array[4] base.u64,
be_block_len : array[4] base.u32,
be_entropy_ix : array[4] base.u64,
be_last_type : array[4] base.u32,
be_second_last_type : array[4] base.u32,
be_depth_off : array[4] base.u64,
be_bits_off : array[4] base.u64,
be_type_depth : array[2048] base.u8,
be_type_bits : array[2048] base.u16,
be_length_depth : array[128] base.u8,
be_length_bits : array[128] base.u16,
// MoveToFrontTransform's mtf.
mtf : array[256] base.u8,
// The histograms of the literal context modeling heuristics and
// ShouldCompress.
ctx_histo : array[512] base.u32,
// BrotliStoreHuffmanTree's local variables: huffman_tree,
// huffman_tree_extra_bits, huffman_tree_histogram,
@@ -262,12 +408,17 @@ pub func encoder.dst_history_retain_length() base.optional_u63 {
// of slack. A shorter workbuf still works if every transform_io input block
// is short enough: a block of n bytes needs ((2 * n) + 519) bytes.
pub func encoder.workbuf_len() base.range_ii_u64 {
var q : base.u32[..= 11]
var n : base.u64
var q : base.u32[..= 11]
var lgwin : base.u32[..= 30]
var n : base.u64
q = this.sanitized_quality()
lgwin = this.sanitized_lgwin(quality: q)
if q <= 1 {
n = ((2 as base.u64) << this.sanitized_lgwin(quality: q)) + 503 + STORAGE_SLACK
n = ((2 as base.u64) << lgwin) + 503 + STORAGE_SLACK
} else if (q <= 9) and ((q == 2) or (this.p_large_window == 0)) {
n = this.compute_layout_offset(quality: q, lgwin: lgwin,
lgblock: this.computed_lgblock(quality: q, lgwin: lgwin), idx: LAYOUT_END)
}
return this.util.make_range_ii_u64(min_incl: n, max_incl: n)
}
@@ -351,7 +502,6 @@ pri func encoder.sanitized_lgwin(quality: base.u32[..= 11]) base.u32[..= 30] {
// Mirrors EnsureInitialized (and BrotliEncoderInitState's distance cache
// initialization) in encode.c.
pri func encoder.ensure_initialized!() {
var lgblock : base.u32
var lgwin : base.u32[..= 30]
var limit : base.u32
var npostfix : base.u32
@@ -387,26 +537,9 @@ pri func encoder.ensure_initialized!() {
this.stream_offset = this.p_stream_offset
// ComputeLgBlock.
if this.quality <= 1 {
this.lgblock = this.lgwin
} else if this.quality < 4 {
this.lgblock = 14
} else if this.p_lgblock == 0 {
this.lgblock = 16
if (this.quality >= 9) and (this.lgwin > 16) {
this.lgblock = this.lgwin.min(no_more_than: 18)
}
} else {
lgblock = this.p_lgblock
if lgblock >= 0x8000_0000 {
// A negative (int) value.
lgblock = 16
}
this.lgblock = lgblock.max(no_less_than: 16).min(no_more_than: 24)
}
this.lgblock = this.computed_lgblock(quality: this.quality, lgwin: this.lgwin)
// ChooseDistanceParams. BrotliInitDistanceParams' other fields are not
// needed at qualities 0 and 1.
// ChooseDistanceParams.
if this.quality >= 4 {
if this.p_mode == 2 {
npostfix = 1
@@ -428,6 +561,7 @@ pri func encoder.ensure_initialized!() {
}
this.distance_postfix_bits = npostfix
this.num_direct_distance_codes = ndirect
this.init_distance_params!()
if this.stream_offset <> 0 {
this.flint = FLINT_NEEDS_2_BYTES
@@ -456,6 +590,9 @@ pri func encoder.ensure_initialized!() {
if this.quality == 0 {
this.init_command_prefix_codes!()
} else if (2 <= this.quality) and (this.quality <= 9) {
// RingBufferSetup and the workbuf layout.
this.compute_layout!()
}
this.is_initialized = true
@@ -655,22 +792,34 @@ pub func encoder.transform_io?(dst: base.io_writer, src: base.io_reader, workbuf
var mark : base.u64
var n32 : base.u32
var ix : base.u64
var status : base.status
var remaining : base.u64
var injected : base.bool
var copy_input_size : base.u64
this.ensure_initialized!()
if this.quality > 1 {
// TODO: implement the C code's EncodeData (and its callees) for
// qualities 2 to 11.
if (this.quality > 9) or (this.large_window and (this.quality > 2)) {
// TODO: implement Zopfli (qualities 10 and 11) and large-window
// brotli at qualities 3 and above.
return "#unsupported encoder quality"
} else if (this.quality >= 2) and (args.workbuf.length() < this.workbuf_end) {
return base."#bad workbuf length"
}
while true {
// ---- The start of a C BrotliEncoderCompressStream call.
if this.metadata_requested {
// op == BROTLI_OPERATION_EMIT_METADATA. UpdateSizeHint(s, 0) is a
// no-op at qualities 0 and 1 (and so is ProcessMetadata's
// EncodeData call, as the fast path never advances input_pos_).
//
// op == BROTLI_OPERATION_EMIT_METADATA. UpdateSizeHint(s, 0) and
// ProcessMetadata's EncodeData call are no-ops at qualities 0 and
// 1 (as the fast path never advances input_pos_). Calling
// UpdateSizeHint(s, 0) only once here (instead of once per C call)
// is equivalent, since repeating it changes nothing.
if this.quality >= 2 {
this.update_size_hint!(available_in: 0)
}
// Mirrors ProcessMetadata in encode.c.
if this.stream_state == STREAM_PROCESSING {
this.remaining_metadata_bytes = this.metadata_length
@@ -689,6 +838,13 @@ pub func encoder.transform_io?(dst: base.io_writer, src: base.io_reader, workbuf
this.push_output!(dst: args.dst, workbuf: args.workbuf)
continue
}
if (this.quality >= 2) and (this.input_pos <> this.last_flush_pos) {
status = this.encode_data!(wb: args.workbuf, is_last: false, force_flush: true)
if not status.is_ok() {
return status
}
continue
}
if this.stream_state == STREAM_METADATA_HEAD {
this.out_len = this.write_metadata_header!(block_size: this.remaining_metadata_bytes)
this.out_in_tiny_buf = true
@@ -737,8 +893,76 @@ pub func encoder.transform_io?(dst: base.io_writer, src: base.io_reader, workbuf
return base."#bad call sequence"
}
// Mirrors the rest of BrotliEncoderCompressStream in encode.c, for
// qualities 2 and above.
while this.quality >= 2 {
remaining = this.remaining_input_block_size()
// Shorten input to flint size.
if (this.flint < 0x8000_0000) and (remaining > (this.flint as base.u64)) {
remaining = this.flint as base.u64
}
if (remaining <> 0) and (args.src.length() > 0) {
copy_input_size = remaining.min(no_more_than: args.src.length())
mark = args.src.mark()
args.src.skip?(n: copy_input_size)
this.copy_input_to_ring_buffer!(wb: args.workbuf, bytes: args.src.since(mark: mark))
if (this.flint > 0) and (this.flint < 0x8000_0000) {
this.flint = this.flint ~mod- ((copy_input_size & 0xFF) as base.u32)
}
continue
}
// Mirrors InjectFlushOrPushOutput in encode.c.
injected = false
if (this.stream_state == STREAM_FLUSH_REQUESTED) and (this.last_bytes_bits <> 0) {
this.inject_byte_padding_block!(workbuf: args.workbuf)
injected = true
} else if (this.out_len <> 0) and (args.dst.length() > 0) {
this.push_output!(dst: args.dst, workbuf: args.workbuf)
injected = true
}
if injected {
// Exit the "emit flint" workflow.
if this.flint == FLINT_WAITING_FOR_FLUSHING {
this.check_flush_complete!()
if this.stream_state == STREAM_PROCESSING {
this.flint = FLINT_DONE
}
}
continue
}
// Compress data only when internal output buffer is empty, stream
// is not finished and there is no pending flush request.
if (this.out_len == 0) and (this.stream_state == STREAM_PROCESSING) {
if (remaining == 0) or (op <> OP_PROCESS) {
is_last = (args.src.length() == 0) and (op == OP_FINISH)
force_flush = (args.src.length() == 0) and (op == OP_FLUSH)
// Force emitting (uncompressed) piece containing flint.
if (not is_last) and (this.flint == FLINT_WAITING_FOR_PROCESSING) {
this.flint = FLINT_WAITING_FOR_FLUSHING
force_flush = true
}
this.update_size_hint!(available_in: args.src.length())
status = this.encode_data!(wb: args.workbuf, is_last: is_last, force_flush: force_flush)
if not status.is_ok() {
return status
}
if force_flush {
this.stream_state = STREAM_FLUSH_REQUESTED
}
if is_last {
this.stream_state = STREAM_FINISHED
}
continue
}
}
break
}
// Mirrors BrotliEncoderCompressStreamFast in encode.c.
while true {
while this.quality <= 1 {
// Mirrors InjectFlushOrPushOutput in encode.c.
if (this.stream_state == STREAM_FLUSH_REQUESTED) and (this.last_bytes_bits <> 0) {
this.inject_byte_padding_block!(workbuf: args.workbuf)
@@ -820,13 +1044,17 @@ pub func encoder.transform_io?(dst: base.io_writer, src: base.io_reader, workbuf
if this.out_len <> 0 {
yield? base."$short write"
} else if (this.quality >= 2) and (args.src.length() > 0) {
// Like the C code's callers, call again while there is input.
// At qualities 2 and above, a C call can return early (with
// input left) after an "emit flint" flush.
} else if op == OP_FLUSH {
this.flush_requested = false
} else if this.stream_state == STREAM_FINISHED {
return ok
} else if op == OP_PROCESS {
yield? base."$short read"
} else {
} else if this.quality <= 1 {
return "#internal error: inconsistent encoder state"
}
}
+988
View File
@@ -0,0 +1,988 @@
// Copyright 2026 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
// This file mirrors the parts of encode.c (and ringbuffer.h) that qualities 2
// to 9 use: the ring buffer, EncodeData, WriteMetaBlockInternal and the
// literal context modeling heuristics. It also computes the workbuf layout.
//
// The workbuf holds, in this order (see README.md's "Encoder Workbuf Layout"
// section, which compute_layout_offset mirrors):
// - the storage (the C code's GetBrotliStorage) for one metablock,
// - the ring buffer (the C code's RingBuffer.data_),
// - the hasher's memory (the C code's common->extra),
// - the commands (16 bytes each), and
// - at qualities 4 and above, the metablock split (see
// encode_metablock_greedy.wuffs), the literal context map, the
// EncodeContextMap symbols and the block encoders' depths and bits.
// The workbuf layout's region indexes. LAYOUT_END's offset is the total
// length.
pri const LAYOUT_STORAGE : base.u32 = 0
pri const LAYOUT_RB : base.u32 = 1
pri const LAYOUT_HASH : base.u32 = 2
pri const LAYOUT_CMDS : base.u32 = 3
pri const LAYOUT_TYPES_0 : base.u32 = 4
pri const LAYOUT_LENGTHS_0 : base.u32 = 7
pri const LAYOUT_HISTO_0 : base.u32 = 10
pri const LAYOUT_COMB : base.u32 = 13
pri const LAYOUT_CMAP : base.u32 = 14
pri const LAYOUT_RLE : base.u32 = 15
pri const LAYOUT_BE_DEPTH_0 : base.u32 = 16
pri const LAYOUT_BE_BITS_0 : base.u32 = 19
pri const LAYOUT_END : base.u32 = 22
// The C code's MAX_NUM_DELAYED_SYMBOLS (in quality.h).
pri const MAX_NUM_DELAYED_SYMBOLS : base.u64 = 0x2FFF
// The doubles 0.99, 7.92, 1.0 / 13.0, 1.0, 10.0, 0.2, 0.02 and 3.0.
pri const F64_0_99 : base.u64 = 0x3FEF_AE14_7AE1_47AE
pri const F64_7_92 : base.u64 = 0x401F_AE14_7AE1_47AE
pri const F64_INV_13 : base.u64 = 0x3FB3_B13B_13B1_3B14
pri const F64_1 : base.u64 = 0x3FF0_0000_0000_0000
pri const F64_10 : base.u64 = 0x4024_0000_0000_0000
pri const F64_0_2 : base.u64 = 0x3FC9_9999_9999_999A
pri const F64_0_02 : base.u64 = 0x3F94_7AE1_47AE_147B
pri const F64_3 : base.u64 = 0x4008_0000_0000_0000
// computed_lgblock mirrors ComputeLgBlock in quality.h.
pri func encoder.computed_lgblock(quality: base.u32[..= 11], lgwin: base.u32[..= 30]) base.u32[..= 30] {
var lgblock : base.u32
if args.quality <= 1 {
return args.lgwin
} else if args.quality < 4 {
return 14
} else if this.p_lgblock == 0 {
if (args.quality >= 9) and (args.lgwin > 16) {
return args.lgwin.min(no_more_than: 18)
}
return 16
}
lgblock = this.p_lgblock
if lgblock >= 0x8000_0000 {
// A negative (int) value.
lgblock = 16
}
return lgblock.max(no_less_than: 16).min(no_more_than: 24)
}
// rb_bits mirrors ComputeRbBits in quality.h.
pri func encoder.rb_bits(lgwin: base.u32[..= 30], lgblock: base.u32[..= 30]) base.u32[..= 31] {
return 1 + args.lgwin.max(no_less_than: args.lgblock)
}
// max_metablock_size mirrors MaxMetablockSize in quality.h.
pri func encoder.max_metablock_size(lgwin: base.u32[..= 30], lgblock: base.u32[..= 30]) base.u64 {
var b : base.u32[..= 31]
b = this.rb_bits(lgwin: args.lgwin, lgblock: args.lgblock)
return (1 as base.u64) << b.min(no_more_than: 24)
}
// hasher_total_size returns the sum of FN(HashMemAllocInBytes)'s
// alloc_size[i] for the hasher that ChooseHasher picks for the given
// quality, lgwin and size_hint.
pri func encoder.hasher_total_size(quality: base.u32[..= 11], lgwin: base.u32[..= 30], size_hint: base.u32) base.u64 {
var htype : base.u32
var bucket_bits : base.u32[..= 24]
var block_bits : base.u32[..= 16]
if (args.quality == 4) and (args.size_hint >= 0x10_0000) {
htype = 54
} else if args.quality < 5 {
htype = args.quality
} else if args.lgwin <= 16 {
htype = 40
if args.quality >= 9 {
htype = 42
}
} else if (args.size_hint >= 0x10_0000) and (args.lgwin >= 19) {
htype = 6
if args.quality <= 6 {
htype = 68
}
bucket_bits = 15
block_bits = args.quality - 1
} else {
htype = 5
if args.quality <= 6 {
htype = 58
}
bucket_bits = 15
if args.quality < 7 {
bucket_bits = 14
}
block_bits = args.quality - 1
}
return (this.hasher_alloc_size(htype: htype, bucket_bits: bucket_bits, block_bits: block_bits, i: 0) ~mod+
this.hasher_alloc_size(htype: htype, bucket_bits: bucket_bits, block_bits: block_bits, i: 1)) ~mod+
this.hasher_alloc_size(htype: htype, bucket_bits: bucket_bits, block_bits: block_bits, i: 2)
}
// hash_region_size returns the workbuf length reserved for the hasher's
// memory. When the size_hint parameter is unset (zero), the hasher choice
// depends on the size hint that UpdateSizeHint computes (from the input's
// length), so this is the larger of the two possible choices.
pri func encoder.hash_region_size(quality: base.u32[..= 11], lgwin: base.u32[..= 30]) base.u64 {
var a : base.u64
var b : base.u64
if this.p_size_hint <> 0 {
return this.hasher_total_size(quality: args.quality, lgwin: args.lgwin, size_hint: this.p_size_hint)
}
a = this.hasher_total_size(quality: args.quality, lgwin: args.lgwin, size_hint: 0)
b = this.hasher_total_size(quality: args.quality, lgwin: args.lgwin, size_hint: 0x10_0000)
return a.max(no_less_than: b)
}
// commands_capacity returns how many commands EncodeData can hold at once:
// at most one per two bytes of the metablock (plus the final insert-only
// command), and at most one per two bytes of an input block on top of those
// that EncodeData kept (merged with the next block), which is fewer than
// MaxMetablockSize / 8 (and, below quality 4, fewer than
// MAX_NUM_DELAYED_SYMBOLS).
pri func encoder.commands_capacity(quality: base.u32[..= 11], lgwin: base.u32[..= 30], lgblock: base.u32[..= 30]) base.u64 {
var max_len : base.u64
var prior : base.u64
max_len = this.max_metablock_size(lgwin: args.lgwin, lgblock: args.lgblock)
prior = (max_len / 8) ~mod- 1
if args.quality < 4 {
prior = prior.min(no_more_than: MAX_NUM_DELAYED_SYMBOLS - 1)
}
return this.min64(a: (prior ~mod+ (((1 as base.u64) << args.lgblock) / 2)) ~mod+ 1, b: (max_len / 2) + 1)
}
// compute_layout_offset returns the workbuf offset of the given LAYOUT_ETC
// region, for qualities 2 to 9.
pri func encoder.compute_layout_offset(quality: base.u32[..= 11], lgwin: base.u32[..= 30], lgblock: base.u32[..= 30], idx: base.u32) base.u64 {
var max_len : base.u64
var cmds_cap : base.u64
var off : base.u64
var i : base.u32
var size : base.u64
var num_histo : base.u64
var hlen : base.u64
max_len = this.max_metablock_size(lgwin: args.lgwin, lgblock: args.lgblock)
cmds_cap = this.commands_capacity(quality: args.quality, lgwin: args.lgwin, lgblock: args.lgblock)
off = 0
i = 0
while i < args.idx.min(no_more_than: LAYOUT_END) {
size = 0
if i == LAYOUT_STORAGE {
size = ((2 ~mod* max_len) ~mod+ 503) ~mod+ STORAGE_SLACK
} else if i == LAYOUT_RB {
size = ((2 + ((1 as base.u64) << this.rb_bits(lgwin: args.lgwin, lgblock: args.lgblock))) ~mod+
((1 as base.u64) << args.lgblock)) ~mod+ 7
} else if i == LAYOUT_HASH {
size = this.hash_region_size(quality: args.quality, lgwin: args.lgwin)
} else if i == LAYOUT_CMDS {
size = 16 ~mod* cmds_cap
} else if args.quality >= 4 {
if i == (LAYOUT_TYPES_0 + 0) {
size = (max_len / 512) + 1
} else if i == (LAYOUT_TYPES_0 + 1) {
size = (cmds_cap / 1024) ~mod+ 1
} else if i == (LAYOUT_TYPES_0 + 2) {
size = (cmds_cap / 512) ~mod+ 1
} else if i == (LAYOUT_LENGTHS_0 + 0) {
size = 4 * ((max_len / 512) + 1)
} else if i == (LAYOUT_LENGTHS_0 + 1) {
size = 4 ~mod* ((cmds_cap / 1024) ~mod+ 1)
} else if i == (LAYOUT_LENGTHS_0 + 2) {
size = 4 ~mod* ((cmds_cap / 512) ~mod+ 1)
} else if (LAYOUT_HISTO_0 <= i) and (i < (LAYOUT_HISTO_0 + 3)) {
// At most 260 literal histograms ((256 / 13) + 1 types of 13
// contexts each), 257 command histograms and 257 distance
// histograms.
if i == (LAYOUT_HISTO_0 + 0) {
size = 260 * 256 * 4
} else if i == (LAYOUT_HISTO_0 + 1) {
size = 257 * 704 * 4
} else {
size = 257 * 544 * 4
}
} else if i == LAYOUT_COMB {
size = 2 * 13 * 256 * 4
} else if i == LAYOUT_CMAP {
size = 256 * 64
} else if i == LAYOUT_RLE {
size = 256 * 64 * 4
} else if (LAYOUT_BE_DEPTH_0 <= i) and (i < (LAYOUT_BE_BITS_0 + 3)) {
// At most 256 histograms (types times contexts) per category.
num_histo = 256
hlen = 256
if (i == (LAYOUT_BE_DEPTH_0 + 1)) or (i == (LAYOUT_BE_BITS_0 + 1)) {
hlen = 704
} else if (i == (LAYOUT_BE_DEPTH_0 + 2)) or (i == (LAYOUT_BE_BITS_0 + 2)) {
hlen = 544
}
size = num_histo ~mod* hlen
if i >= LAYOUT_BE_BITS_0 {
size = 2 ~mod* size
}
}
}
off ~mod+= size
i ~mod+= 1
}
return off
}
// compute_layout sets the workbuf offsets (the this.etc_off fields) for the
// current parameters, at qualities 2 to 9.
pri func encoder.compute_layout!() {
var q : base.u32[..= 11]
var lw : base.u32[..= 30]
var lb : base.u32[..= 30]
var c : base.u32
q = this.quality
lw = this.lgwin
lb = this.lgblock
this.rb_off = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_RB)
this.rb_buf_off = this.rb_off ~mod+ 2
this.h_off0 = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_HASH)
this.cmds_off = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_CMDS)
this.cmds_cap = this.commands_capacity(quality: q, lgwin: lw, lgblock: lb)
c = 0
while c < 3 {
this.gbs_types_off[c] = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_TYPES_0 + c)
this.gbs_lengths_off[c] = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_LENGTHS_0 + c)
this.gbs_histo_off_base[c] = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_HISTO_0 + c)
this.be_depth_off[c] = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_BE_DEPTH_0 + c)
this.be_bits_off[c] = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_BE_BITS_0 + c)
c ~mod+= 1
}
this.mb_comb_off = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_COMB)
this.mb_cmap_off = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_CMAP)
this.mb_rle_off = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_RLE)
this.workbuf_end = this.compute_layout_offset(quality: q, lgwin: lw, lgblock: lb, idx: LAYOUT_END)
// RingBufferSetup.
this.rb_size = (1 as base.u32) << this.rb_bits(lgwin: lw, lgblock: lb)
this.rb_mask = this.rb_size ~mod- 1
this.rb_tail_size = (1 as base.u32) << lb
this.rb_total_size = this.rb_size ~mod+ this.rb_tail_size
}
// Mirrors BrotliInitDistanceParams in metablock.c (without large window).
pri func encoder.init_distance_params!() {
var npostfix : base.u32
var ndirect : base.u32
npostfix = this.distance_postfix_bits & 3
ndirect = this.num_direct_distance_codes
this.dist_alphabet_size_max = (16 ~mod+ ndirect) ~mod+ ((24 as base.u32) << (npostfix + 1))
this.dist_alphabet_size_limit = this.dist_alphabet_size_max
this.dist_max_distance = ((ndirect ~mod+ ((1 as base.u32) << (24 + npostfix + 2))) ~mod-
((1 as base.u32) << (npostfix + 2))) as base.u64
}
// Mirrors WrapPosition in encode.c.
pri func encoder.wrap_position(position: base.u64) base.u64 {
var result : base.u32
var gb : base.u64
result = (args.position & 0xFFFF_FFFF) as base.u32
gb = args.position >> 30
if gb > 2 {
// Wrap every 2GiB; The first 3GB are continuous.
result = (result & 0x3FFF_FFFF) | ((((((gb ~mod- 1) & 1) as base.u32) + 1)) << 30)
}
return result as base.u64
}
// Mirrors RingBufferInitBuffer in ringbuffer.h. The buffer's workbuf offset
// is fixed, so re-allocating it keeps its contents in place.
pri func encoder.rb_init_buffer!(wb: slice base.u8, buflen: base.u32) {
this.rb_cur_size = args.buflen
this.set_byte!(s: args.wb, i: this.rb_off ~mod+ 0, v: 0)
this.set_byte!(s: args.wb, i: this.rb_off ~mod+ 1, v: 0)
this.fill_bytes!(s: args.wb, i: this.rb_buf_off ~mod+ (args.buflen as base.u64), n: 7, v: 0)
}
// rb_copy copies src to the workbuf at the ring buffer's position dst.
pri func encoder.rb_copy!(wb: slice base.u8, dst: base.u64, src: roslice base.u8) {
var a : base.u64
var q : slice base.u8
a = this.rb_buf_off ~mod+ args.dst
if a <= args.wb.length() {
q = args.wb[a ..]
if args.src.length() <= q.length() {
q.copy_from_slice!(s: args.src)
}
}
}
// Mirrors RingBufferWrite (and RingBufferWriteTail) in ringbuffer.h.
pri func encoder.rb_write!(wb: slice base.u8, bytes: roslice base.u8) {
var n : base.u64
var masked_pos : base.u64
var size : base.u64
var tail_size : base.u64
var total_size : base.u64
var k : base.u64
var not_first_lap : base.bool
n = args.bytes.length()
size = this.rb_size as base.u64
tail_size = this.rb_tail_size as base.u64
total_size = this.rb_total_size as base.u64
if (this.rb_pos == 0) and (n < tail_size) {
// Special case for the first write: to process the first block, we
// don't need to allocate the whole ring-buffer and we don't need the
// tail either.
this.rb_pos = (n & 0xFFFF_FFFF) as base.u32
this.rb_init_buffer!(wb: args.wb, buflen: this.rb_pos)
this.rb_copy!(wb: args.wb, dst: 0, src: args.bytes)
return nothing
}
if this.rb_cur_size < this.rb_total_size {
// Lazily allocate the full buffer.
this.rb_init_buffer!(wb: args.wb, buflen: this.rb_total_size)
// Initialize the last two bytes to zero, so that we don't have to
// worry later when we copy the last two bytes to the first two
// positions.
this.set_byte!(s: args.wb, i: (this.rb_buf_off ~mod+ size) ~mod- 2, v: 0)
this.set_byte!(s: args.wb, i: (this.rb_buf_off ~mod+ size) ~mod- 1, v: 0)
// Initialize tail; might be touched by "best_len++" optimization
// when ring buffer is "full".
this.set_byte!(s: args.wb, i: this.rb_buf_off ~mod+ size, v: 241)
}
masked_pos = (this.rb_pos & this.rb_mask) as base.u64
// RingBufferWriteTail.
if masked_pos < tail_size {
// Just fill the tail buffer with the beginning data.
k = this.min64(a: n, b: tail_size ~mod- masked_pos)
if k <= args.bytes.length() {
this.rb_copy!(wb: args.wb, dst: size ~mod+ masked_pos, src: args.bytes[.. k])
}
}
if (masked_pos ~mod+ n) <= size {
// A single write fits.
this.rb_copy!(wb: args.wb, dst: masked_pos, src: args.bytes)
} else {
// Split into two writes. Copy into the end of the buffer, including
// the tail buffer.
k = this.min64(a: n, b: total_size ~mod- masked_pos)
if k <= args.bytes.length() {
this.rb_copy!(wb: args.wb, dst: masked_pos, src: args.bytes[.. k])
}
// Copy into the beginning of the buffer.
k = size ~mod- masked_pos
if k <= args.bytes.length() {
this.rb_copy!(wb: args.wb, dst: 0, src: args.bytes[k ..])
}
}
not_first_lap = (this.rb_pos & 0x8000_0000) <> 0
this.set_byte!(s: args.wb, i: this.rb_off ~mod+ 0, v: this.byte_at(s: args.wb, i: (this.rb_buf_off ~mod+ size) ~mod- 2))
this.set_byte!(s: args.wb, i: this.rb_off ~mod+ 1, v: this.byte_at(s: args.wb, i: (this.rb_buf_off ~mod+ size) ~mod- 1))
this.rb_pos = (this.rb_pos & 0x7FFF_FFFF) ~mod+ ((n & 0x7FFF_FFFF) as base.u32)
if not_first_lap {
// Wrap, but preserve not-a-first-lap feature.
this.rb_pos |= 0x8000_0000
}
}
// Mirrors CopyInputToRingBuffer in encode.c.
pri func encoder.copy_input_to_ring_buffer!(wb: slice base.u8, bytes: roslice base.u8) {
this.rb_write!(wb: args.wb, bytes: args.bytes)
this.input_pos ~mod+= args.bytes.length()
if this.rb_pos <= this.rb_mask {
// This is the first time when the ring buffer is being written. We
// clear 7 bytes just after the bytes that have been copied from the
// input buffer.
this.fill_bytes!(s: args.wb, i: this.rb_buf_off ~mod+ (this.rb_pos as base.u64), n: 7, v: 0)
}
}
// Mirrors UpdateLastProcessedPos in encode.c.
pri func encoder.update_last_processed_pos!() base.bool {
var wrapped_last_processed_pos : base.u64
var wrapped_input_pos : base.u64
wrapped_last_processed_pos = this.wrap_position(position: this.last_processed_pos)
wrapped_input_pos = this.wrap_position(position: this.input_pos)
this.last_processed_pos = this.input_pos
return wrapped_input_pos < wrapped_last_processed_pos
}
// Mirrors RemainingInputBlockSize in encode.c.
pri func encoder.remaining_input_block_size() base.u64 {
var delta : base.u64
var block_size : base.u64
delta = this.input_pos ~mod- this.last_processed_pos
block_size = (1 as base.u64) << this.lgblock
if delta >= block_size {
return 0
}
return block_size ~mod- delta
}
// Mirrors UpdateSizeHint in encode.c.
pri func encoder.update_size_hint!(available_in: base.u64) {
var delta : base.u64
var tail : base.u64
var limit : base.u64
if this.size_hint == 0 {
delta = this.input_pos ~mod- this.last_processed_pos
tail = args.available_in
limit = 0x4000_0000
if (delta >= limit) or (tail >= limit) or ((delta ~mod+ tail) >= limit) {
this.size_hint = 0x4000_0000
} else {
this.size_hint = ((delta ~mod+ tail) & 0xFFFF_FFFF) as base.u32
}
}
}
// Mirrors ExtendLastCommand in encode.c (without a compound dictionary). It
// returns how many bytes it extended the last command by: the caller
// subtracts that from bytes and adds it to wrapped_last_processed_pos.
pri func encoder.extend_last_command!(wb: slice base.u8, bytes: base.u64, wrapped_last_processed_pos: base.u64) base.u64 {
var last : base.u64
var max_backward_distance : base.u64
var copy_len : base.u32
var last_copy_len : base.u64
var last_processed_pos : base.u64
var max_distance : base.u64
var cmd_dist : base.u64
var distance_code : base.u32
var n : base.u64
var p : base.u64
last = this.num_cmds ~mod- 1
max_backward_distance = ((1 as base.u64) << this.lgwin) ~mod- 16
copy_len = this.cmd_copy_len_raw(wb: args.wb, i: last)
last_copy_len = (copy_len & 0x1FF_FFFF) as base.u64
last_processed_pos = this.last_processed_pos ~mod- last_copy_len
max_distance = last_processed_pos.min(no_more_than: max_backward_distance)
cmd_dist = this.dist_cache_u64(i: 0)
distance_code = this.cmd_restore_distance_code(wb: args.wb, i: last)
if (distance_code < 16) or (((distance_code ~mod- 15) as base.u64) == cmd_dist) {
if cmd_dist <= max_distance {
p = args.wrapped_last_processed_pos
while (n < args.bytes) and
(this.rb_byte(wb: args.wb, pos: p) == this.rb_byte(wb: args.wb, pos: p ~mod- cmd_dist)) {
copy_len ~mod+= 1
n ~mod+= 1
p = (p ~mod+ 1) & 0xFFFF_FFFF
}
}
// The copy length is at most the metablock size, and thus
// expressible.
this.set_cmd!(wb: args.wb, i: last,
insert_len: this.cmd_insert_len(wb: args.wb, i: last),
copy_len: copy_len,
dist_extra: this.cmd_dist_extra(wb: args.wb, i: last),
cmd_prefix: this.get_length_code(
insertlen: this.cmd_insert_len(wb: args.wb, i: last) as base.u64,
copylen: ((copy_len & 0x1FF_FFFF) ~mod+ (copy_len >> 25)) as base.u64,
use_last_distance: (this.cmd_dist_prefix(wb: args.wb, i: last) & 0x3FF) == 0),
dist_prefix: this.cmd_dist_prefix(wb: args.wb, i: last))
}
return n
}
// Mirrors EstimateEntropy in encode.c, for the size u32 values of
// this.ctx_histo starting at off.
pri func encoder.estimate_entropy(off: base.u32, size: base.u32) base.u64 {
var total : base.u64
var result : base.u64
var i : base.u32
var p : base.u32
i = 0
while i < args.size {
p = this.ctx_histo[(args.off ~mod+ i) & 511]
total ~mod+= p as base.u64
result = this.sf.f64_add(a: result, b: this.sf.f64_mul(
a: this.sf.f64_from_u32(a: p), b: this.bc.fast_log2(v: p as base.u64)))
i ~mod+= 1
}
return this.sf.f64_sub(a: this.sf.f64_mul(
a: this.sf.f64_from_u64(a: total), b: this.bc.fast_log2(v: total)), b: result)
}
// Mirrors ChooseContextMap in encode.c. The bigram_histo is
// this.ctx_histo[0 .. 9]. It returns num_literal_contexts.
pri func encoder.choose_context_map!() base.u32 {
var i : base.u32
var total : base.u32
var e0 : base.u64
var e1 : base.u64
var e2 : base.u64
var e3 : base.u64
// monogram_histo is this.ctx_histo[16 .. 19] and two_prefix_histo is
// this.ctx_histo[24 .. 30].
i = 16
while i < 32 {
this.ctx_histo[i] = 0
i ~mod+= 1
}
i = 0
while i < 9 {
this.ctx_histo[16 + (i % 3)] ~mod+= this.ctx_histo[i]
this.ctx_histo[24 + (i % 6)] ~mod+= this.ctx_histo[i]
i ~mod+= 1
}
e1 = this.estimate_entropy(off: 16, size: 3)
e2 = this.sf.f64_add(a: this.estimate_entropy(off: 24, size: 3), b: this.estimate_entropy(off: 27, size: 3))
e3 = 0
i = 0
while i < 3 {
e3 = this.sf.f64_add(a: e3, b: this.estimate_entropy(off: 3 * i, size: 3))
i ~mod+= 1
}
total = (this.ctx_histo[16] ~mod+ this.ctx_histo[17]) ~mod+ this.ctx_histo[18]
e0 = this.sf.f64_div(a: F64_1, b: this.sf.f64_from_u32(a: total))
e1 = this.sf.f64_mul(a: e1, b: e0)
e2 = this.sf.f64_mul(a: e2, b: e0)
e3 = this.sf.f64_mul(a: e3, b: e0)
if this.quality < 7 {
// 3 context models is a bit slower, don't use it at lower qualities.
e3 = this.sf.f64_mul(a: e1, b: F64_10)
}
// If expected savings by symbol are less than 0.2 bits, skip the context
// modeling -- in exchange for faster decoding speed.
if (this.sf.f64_lt(a: this.sf.f64_sub(a: e1, b: e2), b: F64_0_2) <> 0) and
(this.sf.f64_lt(a: this.sf.f64_sub(a: e1, b: e3), b: F64_0_2) <> 0) {
return 1
} else if this.sf.f64_lt(a: this.sf.f64_sub(a: e2, b: e3), b: F64_0_02) <> 0 {
return 2
}
return 3
}
// Mirrors ShouldUseComplexStaticContextMap in encode.c. It returns 13 (the
// number of literal contexts) if it should, or 0 if it should not. The
// combined_histo is this.ctx_histo[0 .. 32] and the context_histo is
// this.ctx_histo[32 .. 448].
pri func encoder.should_use_complex_static_context_map!(wb: roslice base.u8, start_pos: base.u64, length: base.u64) base.u32 {
var start_pos : base.u64
var end_pos : base.u64
var stride_end_pos : base.u64
var pos : base.u64
var total : base.u32
var prev1 : base.u8
var prev2 : base.u8
var literal : base.u8
var context : base.u32
var i : base.u32
var e0 : base.u64
var e1 : base.u64
var e2 : base.u64
// Try the more complex static context map only for long data.
if this.size_hint < 0x10_0000 {
return 0
}
start_pos = args.start_pos
end_pos = start_pos ~mod+ args.length
i = 0
while i < 448 {
this.ctx_histo[i] = 0
i ~mod+= 1
}
while (start_pos ~mod+ 64) <= end_pos {
stride_end_pos = start_pos ~mod+ 64
prev2 = this.rb_byte(wb: args.wb, pos: start_pos)
prev1 = this.rb_byte(wb: args.wb, pos: start_pos ~mod+ 1)
// To make the analysis of the data faster we only examine 64 byte
// long strides at every 4kB intervals.
pos = start_pos ~mod+ 2
while pos < stride_end_pos {
literal = this.rb_byte(wb: args.wb, pos: pos)
context = STATIC_CONTEXT_MAP_COMPLEX_UTF8[(CONTEXT_LOOKUP[1024 + (prev1 as base.u32)] |
CONTEXT_LOOKUP[1280 + (prev2 as base.u32)]) & 63] as base.u32
total ~mod+= 1
this.ctx_histo[(literal >> 3) & 31] ~mod+= 1
this.ctx_histo[(32 + (context << 5) + ((literal >> 3) as base.u32)) & 511] ~mod+= 1
prev2 = prev1
prev1 = literal
pos ~mod+= 1
}
start_pos ~mod+= 4096
}
e1 = this.estimate_entropy(off: 0, size: 32)
e2 = 0
i = 0
while i < 13 {
e2 = this.sf.f64_add(a: e2, b: this.estimate_entropy(off: 32 + (i << 5), size: 32))
i ~mod+= 1
}
e0 = this.sf.f64_div(a: F64_1, b: this.sf.f64_from_u32(a: total))
e1 = this.sf.f64_mul(a: e1, b: e0)
e2 = this.sf.f64_mul(a: e2, b: e0)
// The triggering heuristics below were tuned by compressing the
// individual files of the silesia corpus.
if (this.sf.f64_gt(a: e2, b: F64_3) <> 0) or
(this.sf.f64_lt(a: this.sf.f64_sub(a: e1, b: e2), b: F64_0_2) <> 0) {
return 0
}
return 13
}
// Mirrors DecideOverLiteralContextModeling in encode.c. It returns
// num_literal_contexts.
pri func encoder.decide_over_literal_context_modeling!(wb: roslice base.u8, start_pos: base.u64, length: base.u64) base.u32 {
var start_pos : base.u64
var end_pos : base.u64
var stride_end_pos : base.u64
var pos : base.u64
var prev : base.u32[..= 6]
var lit_lut : base.u32[..= 2]
var i : base.u32
if (this.quality < 5) or (args.length < 64) {
return 1
}
i = this.should_use_complex_static_context_map!(wb: args.wb, start_pos: args.start_pos, length: args.length)
if i <> 0 {
return 13
}
// Gather bi-gram data of the UTF8 byte prefixes. To make the analysis of
// UTF8 data faster we only examine 64 byte long strides at every 4kB
// intervals.
start_pos = args.start_pos
end_pos = start_pos ~mod+ args.length
i = 0
while i < 9 {
this.ctx_histo[i] = 0
i ~mod+= 1
}
while (start_pos ~mod+ 64) <= end_pos {
stride_end_pos = start_pos ~mod+ 64
prev = this.utf8_prefix_lut(b: this.rb_byte(wb: args.wb, pos: start_pos)) * 3
pos = start_pos ~mod+ 1
while pos < stride_end_pos {
lit_lut = this.utf8_prefix_lut(b: this.rb_byte(wb: args.wb, pos: pos))
this.ctx_histo[(prev + lit_lut) & 511] ~mod+= 1
prev = lit_lut * 3
pos ~mod+= 1
}
start_pos ~mod+= 4096
}
i = this.choose_context_map!()
return i
}
// utf8_prefix_lut returns DecideOverLiteralContextModeling's lut[b >> 6].
pri func encoder.utf8_prefix_lut(b: base.u8) base.u32[..= 2] {
if args.b < 0x80 {
return 0
} else if args.b < 0xC0 {
return 0
} else if args.b < 0xE0 {
return 1
}
return 2
}
// Mirrors ShouldCompress in encode.c.
pri func encoder.should_compress!(wb: roslice base.u8, last_flush_pos: base.u64, bytes: base.u64, num_literals: base.u64, num_commands: base.u64) base.bool {
var bit_cost_threshold : base.u64
var t : base.u64
var pos : base.u32
var i : base.u64
if args.bytes <= 2 {
return false
}
if args.num_commands < ((args.bytes >> 8) + 2) {
if this.sf.f64_gt(
a: this.sf.f64_from_u64(a: args.num_literals),
b: this.sf.f64_mul(a: F64_0_99, b: this.sf.f64_from_u64(a: args.bytes))) <> 0 {
i = 0
while i < 256 {
this.ctx_histo[i] = 0
i ~mod+= 1
}
bit_cost_threshold = this.sf.f64_mul(
a: this.sf.f64_mul(a: this.sf.f64_from_u64(a: args.bytes), b: F64_7_92),
b: F64_INV_13)
t = (args.bytes ~mod+ 12) / 13
pos = (args.last_flush_pos & 0xFFFF_FFFF) as base.u32
i = 0
while i < t {
this.ctx_histo[this.rb_byte(wb: args.wb, pos: pos as base.u64)] ~mod+= 1
pos ~mod+= 13
i ~mod+= 1
}
if this.sf.f64_gt(a: this.ctx_histo_bits_entropy(), b: bit_cost_threshold) <> 0 {
return false
}
}
}
return true
}
// ctx_histo_bits_entropy returns BrotliBitsEntropy of this.ctx_histo[0 ..
// 256], like bit_cost.bits_entropy.
pri func encoder.ctx_histo_bits_entropy() base.u64 {
var sum : base.u64
var retval : base.u64
var p : base.u64
var i : base.u32
i = 0
while i < 256 {
p = this.ctx_histo[i] as base.u64
sum ~mod+= p
retval = this.sf.f64_sub(a: retval, b: this.sf.f64_mul(
a: this.sf.f64_from_u64(a: p), b: this.bc.fast_log2(v: p)))
i ~mod+= 1
}
if sum <> 0 {
retval = this.sf.f64_add(a: retval, b: this.sf.f64_mul(
a: this.sf.f64_from_u64(a: sum), b: this.bc.fast_log2(v: sum)))
}
if this.sf.f64_lt(a: retval, b: this.sf.f64_from_u64(a: sum)) <> 0 {
retval = this.sf.f64_from_u64(a: sum)
}
return retval
}
// Mirrors WriteMetaBlockInternal in encode.c. The storage is args.s, with
// args.s[0] and args.s[1] holding the last_bytes and this.bw_ix the
// last_bytes_bits.
pri func encoder.write_meta_block_internal!(wb: slice base.u8, last_flush_pos: base.u64, bytes: base.u64, is_last: base.bool,
prev_byte: base.u8, prev_byte2: base.u8, s: slice base.u8) {
var wrapped_last_flush_pos : base.u64
var last_bytes : base.u16
var last_bytes_bits : base.u64
var num_literal_contexts : base.u32
var i : base.u32
var compress : base.bool
wrapped_last_flush_pos = this.wrap_position(position: args.last_flush_pos)
if args.bytes == 0 {
// Write the ISLAST and ISEMPTY bits.
this.write_bits!(n_bits: 2, bits: 3, s: args.s)
this.bw_ix = (this.bw_ix ~mod+ 7) & 0xFFFF_FFFF_FFFF_FFF8
return nothing
}
compress = this.should_compress!(wb: args.wb, last_flush_pos: args.last_flush_pos, bytes: args.bytes,
num_literals: this.num_lits, num_commands: this.num_cmds)
if not compress {
// Restore the distance cache, as its last update by
// CreateBackwardReferences is now unused.
i = 0
while i < 4 {
this.dist_cache[i] = this.saved_dist_cache[i]
i ~mod+= 1
}
this.store_uncompressed_meta_block!(is_final_block: args.is_last, wb: args.wb,
position: wrapped_last_flush_pos, len: args.bytes, s: args.s)
return nothing
}
last_bytes = this.peek_u16(s: args.s, i: 0)
last_bytes_bits = this.bw_ix
if this.quality <= 2 {
this.store_meta_block_fast!(wb: args.wb, start_pos: wrapped_last_flush_pos, length: args.bytes,
is_last: args.is_last, n_commands: this.num_cmds, s: args.s)
} else if this.quality < 4 {
this.store_meta_block_trivial!(wb: args.wb, start_pos: wrapped_last_flush_pos, length: args.bytes,
is_last: args.is_last, n_commands: this.num_cmds, s: args.s)
} else {
num_literal_contexts = 1
if this.p_disable_lcm == 0 {
num_literal_contexts = this.decide_over_literal_context_modeling!(
wb: args.wb, start_pos: wrapped_last_flush_pos, length: args.bytes)
}
this.build_meta_block_greedy!(wb: args.wb, pos: wrapped_last_flush_pos,
prev_byte: args.prev_byte, prev_byte2: args.prev_byte2,
num_contexts: num_literal_contexts, n_commands: this.num_cmds)
// MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS is 4.
this.optimize_histograms!(wb: args.wb, num_distance_codes: this.dist_alphabet_size_limit)
this.store_meta_block!(wb: args.wb, start_pos: wrapped_last_flush_pos, length: args.bytes,
prev_byte: args.prev_byte, prev_byte2: args.prev_byte2,
is_last: args.is_last, n_commands: this.num_cmds, s: args.s)
}
if (args.bytes ~mod+ 4) < (this.bw_ix >> 3) {
// Restore the distance cache and last byte.
i = 0
while i < 4 {
this.dist_cache[i] = this.saved_dist_cache[i]
i ~mod+= 1
}
this.poke_u16!(s: args.s, i: 0, v: last_bytes)
this.bw_ix = last_bytes_bits
this.store_uncompressed_meta_block!(is_final_block: args.is_last, wb: args.wb,
position: wrapped_last_flush_pos, len: args.bytes, s: args.s)
}
}
// Mirrors EncodeData in encode.c, for qualities 2 to 9. On a new metablock,
// it sets the pending output (this.out_etc) to the storage (or tiny_buf).
pri func encoder.encode_data!(wb: slice base.u8, is_last: base.bool, force_flush: base.bool) base.status {
var status : base.status
var delta : base.u64
var bytes : base.u64
var wrapped_last_processed_pos : base.u64
var n : base.u64
var max_length : base.u64
var processed_bytes : base.u64
var next_input_fits_metablock : base.bool
var should_flush : base.bool
var metablock_size : base.u64
var storage_len : base.u64
var ix : base.u64
var i : base.u32
var wrapped : base.bool
delta = this.input_pos ~mod- this.last_processed_pos
bytes = delta & 0xFFFF_FFFF
wrapped_last_processed_pos = this.wrap_position(position: this.last_processed_pos)
if delta == 0 {
// No new input; still might want to flush or finish.
if this.rb_cur_size == 0 {
// No input has been processed so far.
if args.is_last {
// Emit complete finalized stream.
this.last_bytes |= ((3 as base.u32) << this.last_bytes_bits) & 0xFFFF
if this.last_bytes_bits <= 13 {
this.last_bytes_bits += 2
}
this.tiny_buf[0] = (this.last_bytes & 0xFF) as base.u8
this.tiny_buf[1] = (this.last_bytes >> 8) as base.u8
this.out_in_tiny_buf = true
this.out_pos = 0
this.out_len = ((this.last_bytes_bits + 7) >> 3) as base.u64
}
return ok
} else if (not args.is_last) and (not args.force_flush) {
// Another no-op.
return ok
}
}
// Adding more blocks after "last" block is forbidden.
if this.is_last_block_emitted {
return "#internal error: inconsistent encoder state"
}
if args.is_last {
this.is_last_block_emitted = true
}
if delta > ((1 as base.u64) << this.lgblock) {
return "#internal error: inconsistent encoder state"
}
// InitOrStitchToPreviousBlock.
this.hasher_setup!(wb: args.wb, position: wrapped_last_processed_pos, input_size: bytes, is_last: args.is_last)
this.hasher_stitch_to_previous_block!(wb: args.wb, num_bytes: bytes, position: wrapped_last_processed_pos)
if (this.num_cmds > 0) and (this.last_insert_len == 0) {
n = this.extend_last_command!(wb: args.wb, bytes: bytes,
wrapped_last_processed_pos: wrapped_last_processed_pos)
bytes ~mod-= n
wrapped_last_processed_pos = (wrapped_last_processed_pos ~mod+ n) & 0xFFFF_FFFF
}
status = this.create_backward_references!(wb: args.wb, num_bytes: bytes, position: wrapped_last_processed_pos)
if not status.is_ok() {
return status
}
max_length = this.max_metablock_size(lgwin: this.lgwin, lgblock: this.lgblock)
processed_bytes = this.input_pos ~mod- this.last_flush_pos
// If maximal possible additional block doesn't fit metablock, flush now.
next_input_fits_metablock = (processed_bytes ~mod+ ((1 as base.u64) << this.lgblock)) <= max_length
// If block splitting is not used, then flush as soon as there is some
// amount of commands / literals produced.
should_flush = (this.quality < 4) and ((this.num_lits ~mod+ this.num_cmds) >= MAX_NUM_DELAYED_SYMBOLS)
if (not args.is_last) and (not args.force_flush) and (not should_flush) and
next_input_fits_metablock and
(this.num_lits < (max_length / 8)) and
(this.num_cmds < (max_length / 8)) {
// Merge with next input block. Everything will happen later.
wrapped = this.update_last_processed_pos!()
if wrapped {
this.h_is_prepared = false
}
return ok
}
// Create the last insert-only command.
if this.last_insert_len > 0 {
if this.num_cmds >= this.cmds_cap {
return "#internal error: inconsistent encoder state"
}
this.init_insert_command!(wb: args.wb, n: this.num_cmds, insertlen: this.last_insert_len)
this.num_cmds ~mod+= 1
this.num_lits ~mod+= this.last_insert_len
this.last_insert_len = 0
}
if (not args.is_last) and (this.input_pos == this.last_flush_pos) {
// We have no new input data and we don't have to finish the stream,
// so nothing to do.
return ok
}
metablock_size = (this.input_pos ~mod- this.last_flush_pos) & 0xFFFF_FFFF
storage_len = (2 * metablock_size) + 503 + STORAGE_SLACK
if (storage_len > this.rb_off) or (this.rb_off > args.wb.length()) {
return "#internal error: inconsistent encoder state"
}
this.set_byte!(s: args.wb, i: 0, v: (this.last_bytes & 0xFF) as base.u8)
this.set_byte!(s: args.wb, i: 1, v: (this.last_bytes >> 8) as base.u8)
this.bw_ix = this.last_bytes_bits as base.u64
if storage_len > args.wb.length() {
return "#internal error: inconsistent encoder state"
}
this.write_meta_block_internal!(wb: args.wb, last_flush_pos: this.last_flush_pos, bytes: metablock_size,
is_last: args.is_last, prev_byte: this.prev_byte, prev_byte2: this.prev_byte2,
s: args.wb[.. storage_len])
ix = this.bw_ix >> 3
this.last_bytes = this.byte_at(s: args.wb, i: ix) as base.u32
this.last_bytes_bits = (this.bw_ix & 7) as base.u32
this.last_flush_pos = this.input_pos
wrapped = this.update_last_processed_pos!()
if wrapped {
this.h_is_prepared = false
}
if this.last_flush_pos > 0 {
this.prev_byte = this.rb_byte(wb: args.wb, pos: ((this.last_flush_pos & 0xFFFF_FFFF) ~mod- 1) & 0xFFFF_FFFF)
}
if this.last_flush_pos > 1 {
this.prev_byte2 = this.rb_byte(wb: args.wb, pos: (this.last_flush_pos ~mod- 2) & 0xFFFF_FFFF)
}
this.num_cmds = 0
this.num_lits = 0
// Save the state of the distance cache in case we need to restore it for
// emitting an uncompressed block.
i = 0
while i < 4 {
this.saved_dist_cache[i] = this.dist_cache[i]
i ~mod+= 1
}
this.out_in_tiny_buf = false
this.out_pos = 0
this.out_len = ix
return ok
}
+53 -48
View File
@@ -17,8 +17,8 @@
// The C code's HuffmanTree array (a pool of nodes) is the encoder.tree_count,
// encoder.tree_left and encoder.tree_right arrays. A node's int16_t
// index_left_ and index_right_or_value_ fields are stored as base.u16 values,
// with 0xFFFF meaning -1. The C code's pools hold at most (2 * 256) + 1
// nodes. The arrays have 1024 elements so that indexes can be masked.
// with 0xFFFF meaning -1. The C code's pools hold at most (2 * 704) + 1
// nodes. The arrays have 2048 elements so that indexes can be masked.
// TREE_NONE is the C code's -1 for a HuffmanTree index.
pri const TREE_NONE : base.u16 = 0xFFFF
@@ -33,16 +33,16 @@ pri func encoder.set_depth!(p0: base.u32, depth: slice base.u8, max_depth: base.
stack[0] = 0xFFFF_FFFF
p = args.p0
while true {
if this.tree_left[p & 1023] <> TREE_NONE {
if this.tree_left[p & 2047] <> TREE_NONE {
if (level >= args.max_depth) or (level >= 15) {
return false
}
level += 1
stack[level] = this.tree_right[p & 1023] as base.u32
p = this.tree_left[p & 1023] as base.u32
stack[level] = this.tree_right[p & 2047] as base.u32
p = this.tree_left[p & 2047] as base.u32
continue
}
v = this.tree_right[p & 1023] as base.u64
v = this.tree_right[p & 2047] as base.u64
if v < args.depth.length() {
args.depth[v] = level as base.u8
}
@@ -84,29 +84,29 @@ pri func encoder.sort_huffman_tree_items!(n: base.u32, tie_break: base.bool) {
// Insertion sort.
i = 1
while i < args.n {
tc = this.tree_count[i & 1023]
tl = this.tree_left[i & 1023]
tr = this.tree_right[i & 1023]
tc = this.tree_count[i & 2047]
tl = this.tree_left[i & 2047]
tr = this.tree_right[i & 2047]
k = i
j = i ~mod- 1
while this.huffman_tree_less(
c0: tc,
r0: tr,
c1: this.tree_count[j & 1023],
r1: this.tree_right[j & 1023],
c1: this.tree_count[j & 2047],
r1: this.tree_right[j & 2047],
tie_break: args.tie_break) {
this.tree_count[k & 1023] = this.tree_count[j & 1023]
this.tree_left[k & 1023] = this.tree_left[j & 1023]
this.tree_right[k & 1023] = this.tree_right[j & 1023]
this.tree_count[k & 2047] = this.tree_count[j & 2047]
this.tree_left[k & 2047] = this.tree_left[j & 2047]
this.tree_right[k & 2047] = this.tree_right[j & 2047]
k = j
if j == 0 {
break
}
j -= 1
}
this.tree_count[k & 1023] = tc
this.tree_left[k & 1023] = tl
this.tree_right[k & 1023] = tr
this.tree_count[k & 2047] = tc
this.tree_left[k & 2047] = tl
this.tree_right[k & 2047] = tr
i ~mod+= 1
}
return nothing
@@ -122,26 +122,26 @@ pri func encoder.sort_huffman_tree_items!(n: base.u32, tie_break: base.bool) {
i = gap
while i < args.n {
j = i
tc = this.tree_count[i & 1023]
tl = this.tree_left[i & 1023]
tr = this.tree_right[i & 1023]
tc = this.tree_count[i & 2047]
tl = this.tree_left[i & 2047]
tr = this.tree_right[i & 2047]
while j >= gap {
if not this.huffman_tree_less(
c0: tc,
r0: tr,
c1: this.tree_count[(j ~mod- gap) & 1023],
r1: this.tree_right[(j ~mod- gap) & 1023],
c1: this.tree_count[(j ~mod- gap) & 2047],
r1: this.tree_right[(j ~mod- gap) & 2047],
tie_break: args.tie_break) {
break
}
this.tree_count[j & 1023] = this.tree_count[(j ~mod- gap) & 1023]
this.tree_left[j & 1023] = this.tree_left[(j ~mod- gap) & 1023]
this.tree_right[j & 1023] = this.tree_right[(j ~mod- gap) & 1023]
this.tree_count[j & 2047] = this.tree_count[(j ~mod- gap) & 2047]
this.tree_left[j & 2047] = this.tree_left[(j ~mod- gap) & 2047]
this.tree_right[j & 2047] = this.tree_right[(j ~mod- gap) & 2047]
j ~mod-= gap
}
this.tree_count[j & 1023] = tc
this.tree_left[j & 1023] = tl
this.tree_right[j & 1023] = tr
this.tree_count[j & 2047] = tc
this.tree_left[j & 2047] = tl
this.tree_right[j & 2047] = tr
i ~mod+= 1
}
g ~mod+= 1
@@ -150,9 +150,9 @@ pri func encoder.sort_huffman_tree_items!(n: base.u32, tie_break: base.bool) {
// set_sentinel sets the pool's i'th node to the C code's sentinel node.
pri func encoder.set_sentinel!(i: base.u32) {
this.tree_count[args.i & 1023] = 0xFFFF_FFFF
this.tree_left[args.i & 1023] = TREE_NONE
this.tree_right[args.i & 1023] = TREE_NONE
this.tree_count[args.i & 2047] = 0xFFFF_FFFF
this.tree_left[args.i & 2047] = TREE_NONE
this.tree_right[args.i & 2047] = TREE_NONE
}
// merge_huffman_nodes runs the C code's "for (k = n - 1; k != 0; --k)" loop
@@ -173,14 +173,14 @@ pri func encoder.merge_huffman_nodes!(n: base.u32) {
j = args.n ~mod+ 1
k = args.n ~mod- 1
while k <> 0 {
if this.tree_count[i & 1023] <= this.tree_count[j & 1023] {
if this.tree_count[i & 2047] <= this.tree_count[j & 2047] {
left = i
i ~mod+= 1
} else {
left = j
j ~mod+= 1
}
if this.tree_count[i & 1023] <= this.tree_count[j & 1023] {
if this.tree_count[i & 2047] <= this.tree_count[j & 2047] {
right = i
i ~mod+= 1
} else {
@@ -188,9 +188,9 @@ pri func encoder.merge_huffman_nodes!(n: base.u32) {
j ~mod+= 1
}
j_end = (args.n ~mod* 2) ~mod- k
this.tree_count[j_end & 1023] = this.tree_count[left & 1023] ~mod+ this.tree_count[right & 1023]
this.tree_left[j_end & 1023] = (left & 0xFFFF) as base.u16
this.tree_right[j_end & 1023] = (right & 0xFFFF) as base.u16
this.tree_count[j_end & 2047] = this.tree_count[left & 2047] ~mod+ this.tree_count[right & 2047]
this.tree_left[j_end & 2047] = (left & 0xFFFF) as base.u16
this.tree_right[j_end & 2047] = (right & 0xFFFF) as base.u16
this.set_sentinel!(i: j_end ~mod+ 1)
k -= 1
}
@@ -198,8 +198,9 @@ pri func encoder.merge_huffman_nodes!(n: base.u32) {
// Mirrors BrotliCreateHuffmanTree in entropy_encode.c. Wuffs' C code
// generator does not support "slice base.u32" arguments, so the C code's data
// argument is either this.cmd_histo[args.off ..] (when args.src is 0) or
// this.cl_histo[args.off ..] (when args.src is 1).
// argument is this.cmd_histo[args.off ..] (when args.src is 0),
// this.cl_histo[args.off ..] (when args.src is 1) or
// this.huff_histo[args.off ..] (when args.src is 2).
pri func encoder.create_huffman_tree!(src: base.u32, off: base.u32, length: base.u32, tree_limit: base.u32[..= 15], depth: slice base.u8) {
var count_limit : base.u32
var n : base.u32
@@ -216,13 +217,15 @@ pri func encoder.create_huffman_tree!(src: base.u32, off: base.u32, length: base
i -= 1
if args.src == 0 {
count = this.cmd_histo[((args.off as base.u64) ~mod+ i) & 127]
} else {
} else if args.src == 1 {
count = this.cl_histo[((args.off as base.u64) ~mod+ i) & 31]
} else {
count = this.huff_histo[((args.off as base.u64) ~mod+ i) & 1023]
}
if count <> 0 {
this.tree_count[n & 1023] = count.max(no_less_than: count_limit)
this.tree_left[n & 1023] = TREE_NONE
this.tree_right[n & 1023] = (i & 0xFFFF) as base.u16
this.tree_count[n & 2047] = count.max(no_less_than: count_limit)
this.tree_left[n & 2047] = TREE_NONE
this.tree_right[n & 2047] = (i & 0xFFFF) as base.u16
n ~mod+= 1
}
}
@@ -268,8 +271,8 @@ pri func encoder.reverse_bits(num_bits: base.u32, bits: base.u16) base.u16 {
// Mirrors BrotliConvertBitDepthsToSymbols in entropy_encode.c. Wuffs' C code
// generator does not support "slice base.u16" arguments, so the C code's bits
// argument is this.tmp_bits, this.cmd_bits[64 ..], this.cl_bits or
// this.lit_bits when args.dst is 0, 1, 2 or 3.
// argument is this.tmp_bits, this.cmd_bits[64 ..], this.cl_bits,
// this.lit_bits or this.huff_bits when args.dst is 0, 1, 2, 3 or 4.
pri func encoder.convert_bit_depths_to_symbols!(depth: slice base.u8, len: base.u32, dst: base.u32) {
var bl_count : array[16] base.u16
var next_code : array[16] base.u16
@@ -306,6 +309,8 @@ pri func encoder.convert_bit_depths_to_symbols!(depth: slice base.u8, len: base.
this.cmd_bits[(i ~mod+ 64) & 127] = r
} else if args.dst == 2 {
this.cl_bits[i & 31] = r
} else if args.dst == 4 {
this.huff_bits[i & 1023] = r
} else {
this.lit_bits[i & 255] = r
}
@@ -695,12 +700,12 @@ pri func encoder.build_and_store_huffman_tree_fast!(histogram_total: base.u64, m
h = this.histogram[l & 255]
if h <> 0 {
if h >= count_limit {
this.tree_count[n & 1023] = h
this.tree_count[n & 2047] = h
} else {
this.tree_count[n & 1023] = count_limit
this.tree_count[n & 2047] = count_limit
}
this.tree_left[n & 1023] = TREE_NONE
this.tree_right[n & 1023] = (l & 0xFFFF) as base.u16
this.tree_left[n & 2047] = TREE_NONE
this.tree_right[n & 2047] = (l & 0xFFFF) as base.u16
n ~mod+= 1
}
}
+1102
View File
@@ -0,0 +1,1102 @@
// Copyright 2026 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
// This file mirrors the C code's hashers (hash.h and the hash_*_inc.h files)
// that qualities 2 to 9 use: H2, H3, H4 and H54 (hash_longest_match_quickly_inc.h),
// H5 (hash_longest_match_inc.h), H6 (hash_longest_match64_inc.h), H58
// (hash_longest_match_simd_inc.h), H68 (hash_longest_match64_simd_inc.h) and
// H40, H41 and H42 (hash_forgetful_chain_inc.h), as well as the static
// dictionary search (SearchInStaticDictionary in hash.h).
//
// The C code instantiates each hasher from a template. Here, each template is
// one set of functions, parameterized at run time by this.hasher_type. The
// hasher's dynamically allocated memory (the C code's common->extra[i]) is in
// the workbuf, at the this.h_off0, this.h_off1 and this.h_off2 offsets.
//
// H58 and H68 are the hashers that the reference build (x86-64, where
// BROTLI_MAX_SIMD_QUALITY is 6) uses for qualities 5 and 6. Their
// GetMatchingTagMask (matching_tag_mask.h) is computed one tag at a time,
// which gives the same matches, visited in the same order, as the SIMD code.
//
// The hashers' search result (the C code's HasherSearchResult) is in the
// this.sr_len, this.sr_distance, this.sr_score and this.sr_len_code_delta
// fields. The ring buffer (the C code's data or ringbuffer argument) starts at
// the this.rb_buf_off workbuf offset.
// Mirrors kHashMul32 in hash_base.h.
pri const HASH_MUL_32 : base.u32 = 0x1E35_A7BD
// Mirrors kHashMul64 in hash_base.h.
pri const HASH_MUL_64 : base.u64 = 0x1FE3_5A7B_D357_9BD3
// Mirrors BROTLI_SCORE_BASE in hash.h.
pri const SCORE_BASE : base.u64 = 1920
// hasher_quickly_bucket_bits returns the BUCKET_BITS of the H2, H3, H4 and
// H54 hashers.
pri func encoder.hasher_quickly_bucket_bits() base.u32[16 ..= 20] {
if this.hasher_type == 4 {
return 17
} else if this.hasher_type == 54 {
return 20
}
return 16
}
// hasher_quickly_sweep returns the BUCKET_SWEEP (1 << BUCKET_SWEEP_BITS) of
// the H2, H3, H4 and H54 hashers.
pri func encoder.hasher_quickly_sweep() base.u32[1 ..= 4] {
if this.hasher_type == 2 {
return 1
} else if this.hasher_type == 3 {
return 2
}
return 4
}
// Mirrors FN(HashTypeLength) (which equals FN(StoreLookahead)) of every
// hasher.
pri func encoder.hasher_type_length() base.u64 {
if (this.hasher_type == 5) or (this.hasher_type == 58) or
(this.hasher_type == 40) or (this.hasher_type == 41) or (this.hasher_type == 42) {
return 4
}
return 8
}
// fc_num_last_distances returns the NUM_LAST_DISTANCES_TO_CHECK of the H40,
// H41 and H42 hashers.
pri func encoder.fc_num_last_distances() base.u32[..= 16] {
if this.hasher_type == 40 {
return 4
} else if this.hasher_type == 41 {
return 10
}
return 16
}
// fc_num_banks_minus_1 returns the NUM_BANKS - 1 of the H40, H41 and H42
// hashers.
pri func encoder.fc_num_banks_minus_1() base.u64[..= 511] {
if this.hasher_type == 42 {
return 511
}
return 0
}
// fc_bank_bits returns the BANK_BITS of the H40, H41 and H42 hashers.
pri func encoder.fc_bank_bits() base.u32[..= 16] {
if this.hasher_type == 42 {
return 9
}
return 16
}
// Mirrors ChooseHasher in quality.h (with BROTLI_MAX_SIMD_QUALITY defined as
// 6), for qualities 2 to 9 and lgwin up to 24.
pri func encoder.choose_hasher!() {
var q : base.u32[..= 11]
q = this.quality
this.h_bucket_bits = 0
this.h_block_bits = 0
this.h_num_last_distances = 0
if (q == 4) and (this.size_hint >= 0x10_0000) {
this.hasher_type = 54
} else if q < 5 {
this.hasher_type = q
} else if this.lgwin <= 16 {
if q < 7 {
this.hasher_type = 40
} else if q < 9 {
this.hasher_type = 41
} else {
this.hasher_type = 42
}
} else {
if (this.size_hint >= 0x10_0000) and (this.lgwin >= 19) {
this.hasher_type = 6
if q <= 6 {
this.hasher_type = 68
}
this.h_bucket_bits = 15
} else {
this.hasher_type = 5
if q <= 6 {
this.hasher_type = 58
}
this.h_bucket_bits = 15
if q < 7 {
this.h_bucket_bits = 14
}
}
this.h_block_bits = q - 1
this.h_num_last_distances = 16
if q < 7 {
this.h_num_last_distances = 4
} else if q < 9 {
this.h_num_last_distances = 10
}
}
}
// hasher_alloc_size mirrors FN(HashMemAllocInBytes) (alloc_size[i], for i in
// 0 ..= 2) for the hasher of the given type and parameters.
pri func encoder.hasher_alloc_size(htype: base.u32, bucket_bits: base.u32[..= 24], block_bits: base.u32[..= 16], i: base.u32) base.u64 {
var bb : base.u64
if (args.htype == 2) or (args.htype == 3) {
if args.i == 0 {
return 4 << 16
}
} else if args.htype == 4 {
if args.i == 0 {
return 4 << 17
}
} else if args.htype == 54 {
if args.i == 0 {
return 4 << 20
}
} else if (args.htype == 5) or (args.htype == 6) {
bb = (1 as base.u64) << args.bucket_bits
if args.i == 0 {
return 2 * bb
} else if args.i == 1 {
return 4 * (bb << args.block_bits)
}
} else if (args.htype == 58) or (args.htype == 68) {
bb = (1 as base.u64) << args.bucket_bits
if args.i == 0 {
return 2 * bb
} else if args.i == 1 {
return bb << args.block_bits
} else if args.i == 2 {
return 4 * (bb << args.block_bits)
}
} else if (args.htype == 40) or (args.htype == 41) {
if args.i == 0 {
return (4 * 0x8000) + (2 * 0x8000) + 0x1_0000
} else if args.i == 1 {
return 4 * 0x1_0000
}
} else if args.htype == 42 {
if args.i == 0 {
return (4 * 0x8000) + (2 * 0x8000) + 0x1_0000
} else if args.i == 1 {
return 4 * 512 * 512
}
}
return 0
}
// Mirrors HasherSetup in hash.h. The hasher memory's workbuf offsets were set
// by compute_layout.
pri func encoder.hasher_setup!(wb: slice base.u8, position: base.u64, input_size: base.u64, is_last: base.bool) {
var one_shot : base.bool
one_shot = (args.position == 0) and args.is_last
if not this.h_is_setup {
this.choose_hasher!()
this.dict_num_lookups = 0
this.dict_num_matches = 0
// FN(Initialize).
if (this.hasher_type == 40) or (this.hasher_type == 41) or (this.hasher_type == 42) {
if this.quality > 6 {
this.fc_max_hops = (7 as base.u64) << (this.quality - 4)
} else if this.quality >= 4 {
this.fc_max_hops = (8 as base.u64) << (this.quality - 4)
}
}
this.h_off1 = this.h_off0 ~mod+ this.hasher_alloc_size(
htype: this.hasher_type, bucket_bits: this.h_bucket_bits, block_bits: this.h_block_bits, i: 0)
this.h_off2 = this.h_off1 ~mod+ this.hasher_alloc_size(
htype: this.hasher_type, bucket_bits: this.h_bucket_bits, block_bits: this.h_block_bits, i: 1)
this.h_is_prepared = false
this.h_is_setup = true
}
if not this.h_is_prepared {
this.hasher_prepare!(wb: args.wb, one_shot: one_shot, input_size: args.input_size)
this.h_is_prepared = true
}
}
// Mirrors FN(Prepare) of every hasher.
pri func encoder.hasher_prepare!(wb: slice base.u8, one_shot: base.bool, input_size: base.u64) {
var data : roslice base.u8
var i : base.u64
var j : base.u32
var key : base.u32
var sweep : base.u32
var bsize : base.u64
var htype : base.u32
var partial : base.bool
htype = this.hasher_type
if this.rb_buf_off > args.wb.length() {
return nothing
}
data = args.wb[this.rb_buf_off ..]
if (htype == 2) or (htype == 3) or (htype == 4) or (htype == 54) {
bsize = (1 as base.u64) << this.hasher_quickly_bucket_bits()
sweep = this.hasher_quickly_sweep()
if args.one_shot and (args.input_size <= (bsize >> 5)) {
i = 0
while i < args.input_size {
key = this.hash_quickly(data: data, i: i)
j = 0
while j < sweep {
this.poke_u32!(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* (((key ~mod+ (j ~mod<< 3)) as base.u64) & (bsize ~mod- 1))), v: 0)
j ~mod+= 1
}
i ~mod+= 1
}
} else {
this.fill_bytes!(s: args.wb, i: this.h_off0, n: 4 * bsize, v: 0)
}
} else if (htype == 5) or (htype == 6) or (htype == 58) or (htype == 68) {
bsize = (1 as base.u64) << this.h_bucket_bits
partial = args.one_shot and (args.input_size <= (bsize >> 6))
if partial {
i = 0
while i < args.input_size {
key = this.hash_longest(data: data, i: i)
if (htype == 58) or (htype == 68) {
this.poke_u16!(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* ((key >> 8) as base.u64)), v: 0xFFFF)
} else {
this.poke_u16!(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* (key as base.u64)), v: 0)
}
i ~mod+= 1
}
} else if (htype == 58) or (htype == 68) {
this.fill_bytes!(s: args.wb, i: this.h_off0, n: 2 * bsize, v: 0xFF)
} else {
this.fill_bytes!(s: args.wb, i: this.h_off0, n: 2 * bsize, v: 0)
}
} else if (htype == 40) or (htype == 41) or (htype == 42) {
// addr is at h_off0, head at h_off0 + 0x2_0000 and tiny_hash at
// h_off0 + 0x3_0000.
if args.one_shot and (args.input_size <= (0x8000 >> 6)) {
i = 0
while i < args.input_size {
key = this.hash_forgetful(data: data, i: i)
this.poke_u32!(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* (key as base.u64)), v: 0xCCCC_CCCC)
this.poke_u16!(s: args.wb, i: (this.h_off0 ~mod+ 0x2_0000) ~mod+ (2 ~mod* (key as base.u64)), v: 0xCCCC)
i ~mod+= 1
}
} else {
this.fill_bytes!(s: args.wb, i: this.h_off0, n: 0x2_0000, v: 0xCC)
this.fill_bytes!(s: args.wb, i: this.h_off0 ~mod+ 0x2_0000, n: 0x1_0000, v: 0)
}
this.fill_bytes!(s: args.wb, i: this.h_off0 ~mod+ 0x3_0000, n: 0x1_0000, v: 0)
j = 0
while j < 512 {
this.fc_free_slot_idx[j] = 0
j ~mod+= 1
}
}
}
// Mirrors FN(HashBytes) in hash_longest_match_quickly_inc.h.
pri func encoder.hash_quickly(data: roslice base.u8, i: base.u64) base.u32 {
var h : base.u64
if this.hasher_type == 54 {
h = (this.load64le(s: args.data, i: args.i) ~mod<< 8) ~mod* HASH_MUL_64
} else {
h = (this.load64le(s: args.data, i: args.i) ~mod<< 24) ~mod* HASH_MUL_64
}
return (h >> (64 - this.hasher_quickly_bucket_bits())) as base.u32
}
// Mirrors FN(HashBytes) in hash_longest_match_inc.h (H5),
// hash_longest_match64_inc.h (H6), hash_longest_match_simd_inc.h (H58) and
// hash_longest_match64_simd_inc.h (H68). For H58 and H68, the low 8 bits of
// the result are the tag and the high bits are the key.
pri func encoder.hash_longest(data: roslice base.u8, i: base.u64) base.u32 {
var h32 : base.u32
var h64 : base.u64
if this.hasher_type == 5 {
h32 = this.load32le(s: args.data, i: args.i) ~mod* HASH_MUL_32
return h32 >> ((32 - this.h_bucket_bits) & 31)
} else if this.hasher_type == 58 {
h32 = this.load32le(s: args.data, i: args.i) ~mod* HASH_MUL_32
return h32 >> ((24 - this.h_bucket_bits) & 31)
}
h64 = this.load64le(s: args.data, i: args.i) ~mod* ((HASH_MUL_64 << 24) & 0xFFFF_FFFF_FFFF_FFFF)
if this.hasher_type == 6 {
return (h64 >> 49) as base.u32
}
return (h64 >> 41) as base.u32
}
// Mirrors FN(HashBytes) in hash_forgetful_chain_inc.h.
pri func encoder.hash_forgetful(data: roslice base.u8, i: base.u64) base.u32 {
var h32 : base.u32
h32 = this.load32le(s: args.data, i: args.i) ~mod* HASH_MUL_32
return h32 >> 17
}
// Mirrors FN(Store) of every hasher.
pri func encoder.hasher_store!(wb: slice base.u8, ix: base.u64) {
var data : roslice base.u8
var htype : base.u32
var key : base.u32
var bsize : base.u64
var off : base.u64
var num : base.u16
var hash : base.u32
var bank : base.u64
var idx : base.u64
var delta : base.u64
var head_v : base.u16
var fc_bits : base.u32[..= 16]
htype = this.hasher_type
if this.rb_buf_off > args.wb.length() {
return nothing
}
data = args.wb[this.rb_buf_off ..]
if (htype == 2) or (htype == 3) or (htype == 4) or (htype == 54) {
key = this.hash_quickly(data: data, i: args.ix & (this.rb_mask as base.u64))
bsize = (1 as base.u64) << this.hasher_quickly_bucket_bits()
off = ((key as base.u64) + (args.ix & (((this.hasher_quickly_sweep() as base.u64) - 1) << 3))) & (bsize ~mod- 1)
this.poke_u32!(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* off), v: (args.ix & 0xFFFF_FFFF) as base.u32)
} else if (htype == 5) or (htype == 6) {
key = this.hash_longest(data: data, i: args.ix & (this.rb_mask as base.u64))
num = this.peek_u16(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* (key as base.u64)))
off = ((num as base.u64) & (((1 as base.u64) << this.h_block_bits) - 1)) ~mod+
((key as base.u64) << this.h_block_bits)
this.poke_u16!(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* (key as base.u64)), v: num ~mod+ 1)
this.poke_u32!(s: args.wb, i: this.h_off1 ~mod+ (4 ~mod* off), v: (args.ix & 0xFFFF_FFFF) as base.u32)
} else if (htype == 58) or (htype == 68) {
hash = this.hash_longest(data: data, i: args.ix & (this.rb_mask as base.u64))
key = hash >> 8
num = this.peek_u16(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* (key as base.u64)))
off = ((num as base.u64) & (((1 as base.u64) << this.h_block_bits) - 1)) ~mod+
((key as base.u64) << this.h_block_bits)
this.poke_u16!(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* (key as base.u64)), v: num ~mod- 1)
this.poke_u32!(s: args.wb, i: this.h_off2 ~mod+ (4 ~mod* off), v: (args.ix & 0xFFFF_FFFF) as base.u32)
this.set_byte!(s: args.wb, i: this.h_off1 ~mod+ off, v: (hash & 0xFF) as base.u8)
} else if (htype == 40) or (htype == 41) or (htype == 42) {
key = this.hash_forgetful(data: data, i: args.ix & (this.rb_mask as base.u64))
fc_bits = this.fc_bank_bits()
bank = (key as base.u64) & this.fc_num_banks_minus_1()
idx = (this.fc_free_slot_idx[bank] as base.u64) & (((1 as base.u64) << fc_bits) - 1)
this.fc_free_slot_idx[bank] ~mod+= 1
delta = args.ix ~mod- (this.load32le(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* (key as base.u64))) as base.u64)
this.set_byte!(s: args.wb, i: (this.h_off0 ~mod+ 0x3_0000) ~mod+ (args.ix & 0xFFFF), v: (key & 0xFF) as base.u8)
if delta > 0xFFFF {
delta = 0xFFFF
}
head_v = this.peek_u16(s: args.wb, i: (this.h_off0 ~mod+ 0x2_0000) ~mod+ (2 ~mod* (key as base.u64)))
off = this.h_off1 ~mod+ (4 ~mod* ((bank ~mod<< fc_bits) ~mod+ idx))
this.poke_u16!(s: args.wb, i: off, v: (delta & 0xFFFF) as base.u16)
this.poke_u16!(s: args.wb, i: off ~mod+ 2, v: head_v)
this.poke_u32!(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* (key as base.u64)), v: (args.ix & 0xFFFF_FFFF) as base.u32)
this.poke_u16!(s: args.wb, i: (this.h_off0 ~mod+ 0x2_0000) ~mod+ (2 ~mod* (key as base.u64)), v: (idx & 0xFFFF) as base.u16)
}
}
// Mirrors FN(StoreRange) of every hasher.
pri func encoder.hasher_store_range!(wb: slice base.u8, ix_start: base.u64, ix_end: base.u64) {
var i : base.u64
i = args.ix_start
while i < args.ix_end {
this.hasher_store!(wb: args.wb, ix: i)
i ~mod+= 1
}
}
// Mirrors FN(StitchToPreviousBlock) of every hasher.
pri func encoder.hasher_stitch_to_previous_block!(wb: slice base.u8, num_bytes: base.u64, position: base.u64) {
if (args.num_bytes >= (this.hasher_type_length() ~mod- 1)) and (args.position >= 3) {
this.hasher_store!(wb: args.wb, ix: args.position ~mod- 3)
this.hasher_store!(wb: args.wb, ix: args.position ~mod- 2)
this.hasher_store!(wb: args.wb, ix: args.position ~mod- 1)
}
}
// Mirrors PrepareDistanceCache in hash.h, via each hasher's
// FN(PrepareDistanceCache).
pri func encoder.prepare_distance_cache!() {
var n : base.u32
var last : base.u32
if (this.hasher_type == 2) or (this.hasher_type == 3) or (this.hasher_type == 4) or (this.hasher_type == 54) {
return nothing
} else if (this.hasher_type == 40) or (this.hasher_type == 41) or (this.hasher_type == 42) {
n = this.fc_num_last_distances()
} else {
n = this.h_num_last_distances
}
if n > 4 {
last = this.dist_cache[0]
this.dist_cache[4] = last ~mod- 1
this.dist_cache[5] = last ~mod+ 1
this.dist_cache[6] = last ~mod- 2
this.dist_cache[7] = last ~mod+ 2
this.dist_cache[8] = last ~mod- 3
this.dist_cache[9] = last ~mod+ 3
if n > 10 {
last = this.dist_cache[1]
this.dist_cache[10] = last ~mod- 1
this.dist_cache[11] = last ~mod+ 1
this.dist_cache[12] = last ~mod- 2
this.dist_cache[13] = last ~mod+ 2
this.dist_cache[14] = last ~mod- 3
this.dist_cache[15] = last ~mod+ 3
}
}
}
// Mirrors BackwardReferenceScore in hash.h.
pri func encoder.backward_reference_score(copy_length: base.u64, backward_reference_offset: base.u64) base.u64 {
return (SCORE_BASE ~mod+ (135 ~mod* args.copy_length)) ~mod-
(30 * (this.log2_floor_non_zero(n: args.backward_reference_offset) as base.u64))
}
// Mirrors BackwardReferenceScoreUsingLastDistance in hash.h.
pri func encoder.backward_reference_score_using_last_distance(copy_length: base.u64) base.u64 {
return ((135 ~mod* args.copy_length) ~mod+ SCORE_BASE) ~mod+ 15
}
// Mirrors BackwardReferencePenaltyUsingLastDistance in hash.h.
pri func encoder.backward_reference_penalty_using_last_distance(distance_short_code: base.u64) base.u64 {
return 39 + (((0x1_CA10 as base.u64) >> (args.distance_short_code & 0x0E)) & 0x0E)
}
// find_match_length_dict is like find_match_length_with_limit, comparing
// data[i ..] with the static dictionary's DICTIONARY[d ..].
pri func encoder.find_match_length_dict(data: roslice base.u8, i: base.u64, d: base.u64, limit: base.u64) base.u64 {
var matched : base.u64
var a : roslice base.u8
if args.i > args.data.length() {
return 0
}
a = args.data[args.i ..]
while (matched < args.limit) and (matched < a.length()) {
if (args.d ~mod+ matched) >= 122784 {
break
}
if a[matched] <> DICTIONARY[(args.d ~mod+ matched) & 0x1_FFFF] {
break
}
matched ~mod+= 1
}
return matched
}
// Mirrors TestStaticDictionaryItem in hash.h, for the built-in dictionary.
pri func encoder.test_static_dictionary_item!(data: roslice base.u8, i: base.u64, len: base.u32[..= 31], word_idx: base.u64, max_length: base.u64, max_backward: base.u64, max_distance: base.u64) base.bool {
var offset : base.u64
var matchlen : base.u64
var backward : base.u64
var score : base.u64
var cut : base.u64
var transform_id : base.u64
offset = (DICTIONARY_OFFSETS_BY_LENGTH[args.len] as base.u64) ~mod+ ((args.len as base.u64) ~mod* args.word_idx)
if (args.len as base.u64) > args.max_length {
return false
}
matchlen = this.find_match_length_dict(data: args.data, i: args.i, d: offset, limit: args.len as base.u64)
if ((matchlen ~mod+ CUTOFF_TRANSFORMS_COUNT) <= (args.len as base.u64)) or (matchlen == 0) {
return false
}
cut = (args.len as base.u64) ~mod- matchlen
transform_id = (cut ~mod<< 2) ~mod+ ((CUTOFF_TRANSFORMS >> ((cut ~mod* 6) & 63)) & 0x3F)
backward = ((args.max_backward ~mod+ 1) ~mod+ args.word_idx) ~mod+
(transform_id ~mod<< DICTIONARY_SIZE_BITS_BY_LENGTH[args.len])
if backward > args.max_distance {
return false
}
score = this.backward_reference_score(copy_length: matchlen, backward_reference_offset: backward)
if score < this.sr_score {
return false
}
this.sr_len = matchlen
this.sr_len_code_delta = (args.len as base.u64) ~mod- matchlen
this.sr_distance = backward
this.sr_score = score
return true
}
// Mirrors SearchInStaticDictionary in hash.h, for the built-in dictionary.
pri func encoder.search_in_static_dictionary!(data: roslice base.u8, i: base.u64, max_length: base.u64, max_backward: base.u64, max_distance: base.u64, shallow: base.bool) {
var key : base.u32
var n : base.u32
var j : base.u32
var len : base.u32[..= 31]
var found : base.bool
if this.dict_num_matches < (this.dict_num_lookups >> 7) {
return nothing
}
key = ((this.load32le(s: args.data, i: args.i) ~mod* HASH_MUL_32) >> 18) << 1
n = 2
if args.shallow {
n = 1
}
j = 0
while j < n {
this.dict_num_lookups ~mod+= 1
len = STATIC_DICTIONARY_HASH_LENGTHS[key & 0x7FFF] as base.u32
if len <> 0 {
found = this.test_static_dictionary_item!(
data: args.data,
i: args.i,
len: len,
word_idx: STATIC_DICTIONARY_HASH_WORDS[key & 0x7FFF] as base.u64,
max_length: args.max_length,
max_backward: args.max_backward,
max_distance: args.max_distance)
if found {
this.dict_num_matches ~mod+= 1
}
}
j ~mod+= 1
key ~mod+= 1
}
}
// Mirrors FN(FindLongestMatch) of every hasher. The search result is in the
// this.sr_etc fields.
pri func encoder.find_longest_match!(wb: slice base.u8, cur_ix: base.u64, max_length: base.u64, max_backward: base.u64, dictionary_distance: base.u64, max_distance: base.u64) {
var htype : base.u32
htype = this.hasher_type
if (htype == 2) or (htype == 3) or (htype == 4) or (htype == 54) {
this.find_longest_match_quickly!(wb: args.wb, cur_ix: args.cur_ix, max_length: args.max_length,
max_backward: args.max_backward, dictionary_distance: args.dictionary_distance, max_distance: args.max_distance)
} else if (htype == 5) or (htype == 6) {
this.find_longest_match_h5!(wb: args.wb, cur_ix: args.cur_ix, max_length: args.max_length,
max_backward: args.max_backward, dictionary_distance: args.dictionary_distance, max_distance: args.max_distance)
} else if (htype == 58) or (htype == 68) {
this.find_longest_match_h58!(wb: args.wb, cur_ix: args.cur_ix, max_length: args.max_length,
max_backward: args.max_backward, dictionary_distance: args.dictionary_distance, max_distance: args.max_distance)
} else {
this.find_longest_match_forgetful!(wb: args.wb, cur_ix: args.cur_ix, max_length: args.max_length,
max_backward: args.max_backward, dictionary_distance: args.dictionary_distance, max_distance: args.max_distance)
}
}
// Mirrors FN(FindLongestMatch) in hash_longest_match_quickly_inc.h.
pri func encoder.find_longest_match_quickly!(wb: slice base.u8, cur_ix: base.u64, max_length: base.u64, max_backward: base.u64, dictionary_distance: base.u64, max_distance: base.u64) {
var data : roslice base.u8
var mask : base.u64
var best_len_in : base.u64
var cur_ix_masked : base.u64
var compare_char : base.u8
var key : base.u64
var key_out : base.u64
var min_score : base.u64
var best_score : base.u64
var best_len : base.u64
var cached_backward : base.u64
var prev_ix : base.u64
var len : base.u64
var score : base.u64
var backward : base.u64
var sweep : base.u64[..= 4]
var bucket_mask : base.u64
var i : base.u64
var keys : array[4] base.u64
var use_dictionary : base.bool
if this.rb_buf_off > args.wb.length() {
return nothing
}
data = args.wb[this.rb_buf_off ..]
mask = this.rb_mask as base.u64
sweep = this.hasher_quickly_sweep() as base.u64
bucket_mask = ((1 as base.u64) << this.hasher_quickly_bucket_bits()) ~mod- 1
use_dictionary = (this.hasher_type == 2) or (this.hasher_type == 4)
best_len_in = this.sr_len
cur_ix_masked = args.cur_ix & mask
compare_char = this.byte_at(s: data, i: cur_ix_masked ~mod+ best_len_in)
key = this.hash_quickly(data: data, i: cur_ix_masked) as base.u64
min_score = this.sr_score
best_score = this.sr_score
best_len = best_len_in
cached_backward = this.dist_cache_u64(i: 0)
prev_ix = args.cur_ix ~mod- cached_backward
this.sr_len_code_delta = 0
if prev_ix < args.cur_ix {
prev_ix &= mask & 0xFFFF_FFFF
if compare_char == this.byte_at(s: data, i: prev_ix ~mod+ best_len) {
len = this.find_match_length_with_limit(s: data, i1: prev_ix, i2: cur_ix_masked, limit: args.max_length)
if len >= 4 {
score = this.backward_reference_score_using_last_distance(copy_length: len)
if best_score < score {
this.sr_len = len
this.sr_distance = cached_backward
this.sr_score = score
if sweep == 1 {
this.poke_u32!(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* key), v: (args.cur_ix & 0xFFFF_FFFF) as base.u32)
return nothing
}
best_len = len
best_score = score
compare_char = this.byte_at(s: data, i: cur_ix_masked ~mod+ len)
}
}
}
}
if sweep == 1 {
prev_ix = this.load32le(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* key)) as base.u64
this.poke_u32!(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* key), v: (args.cur_ix & 0xFFFF_FFFF) as base.u32)
backward = args.cur_ix ~mod- prev_ix
prev_ix &= mask & 0xFFFF_FFFF
if compare_char <> this.byte_at(s: data, i: prev_ix ~mod+ best_len_in) {
return nothing
}
if (backward == 0) or (backward > args.max_backward) {
return nothing
}
len = this.find_match_length_with_limit(s: data, i1: prev_ix, i2: cur_ix_masked, limit: args.max_length)
if len >= 4 {
score = this.backward_reference_score(copy_length: len, backward_reference_offset: backward)
if best_score < score {
this.sr_len = len
this.sr_distance = backward
this.sr_score = score
return nothing
}
}
} else {
i = 0
while i < sweep {
assert i < 4 via "a < b: a < c; c <= b"(c: sweep)
keys[i] = (key ~mod+ (i ~mod<< 3)) & bucket_mask
i ~mod+= 1
}
key_out = keys[((args.cur_ix & (((this.hasher_quickly_sweep() as base.u64) - 1) << 3)) >> 3) & 3]
i = 0
while i < sweep {
assert i < 4 via "a < b: a < c; c <= b"(c: sweep)
prev_ix = this.load32le(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* keys[i])) as base.u64
backward = args.cur_ix ~mod- prev_ix
prev_ix &= mask & 0xFFFF_FFFF
if compare_char <> this.byte_at(s: data, i: prev_ix ~mod+ best_len) {
i ~mod+= 1
continue
}
if (backward == 0) or (backward > args.max_backward) {
i ~mod+= 1
continue
}
len = this.find_match_length_with_limit(s: data, i1: prev_ix, i2: cur_ix_masked, limit: args.max_length)
if len >= 4 {
score = this.backward_reference_score(copy_length: len, backward_reference_offset: backward)
if best_score < score {
best_len = len
this.sr_len = len
compare_char = this.byte_at(s: data, i: cur_ix_masked ~mod+ len)
best_score = score
this.sr_score = score
this.sr_distance = backward
}
}
i ~mod+= 1
}
}
if use_dictionary and (min_score == this.sr_score) {
this.search_in_static_dictionary!(data: data, i: cur_ix_masked, max_length: args.max_length,
max_backward: args.dictionary_distance, max_distance: args.max_distance, shallow: true)
}
if sweep <> 1 {
this.poke_u32!(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* key_out), v: (args.cur_ix & 0xFFFF_FFFF) as base.u32)
}
}
// find_last_distances is the "Try last distance first" loop shared by the
// H5, H6, H58 and H68 FN(FindLongestMatch) functions. It returns best_len.
pri func encoder.find_last_distances!(data: roslice base.u8, cur_ix: base.u64, max_length: base.u64, max_backward: base.u64) base.u64 {
var mask : base.u64
var cur_ix_masked : base.u64
var best_score : base.u64
var best_len : base.u64
var i : base.u32
var backward : base.u64
var prev_ix : base.u64
var len : base.u64
var score : base.u64
mask = this.rb_mask as base.u64
cur_ix_masked = args.cur_ix & mask
best_score = this.sr_score
best_len = this.sr_len
this.sr_len = 0
this.sr_len_code_delta = 0
i = 0
while i < this.h_num_last_distances {
backward = this.dist_cache_u64(i: i)
prev_ix = args.cur_ix ~mod- backward
if prev_ix >= args.cur_ix {
i ~mod+= 1
continue
}
if backward > args.max_backward {
i ~mod+= 1
continue
}
prev_ix &= mask
if (cur_ix_masked ~mod+ best_len) > mask {
break
}
if ((prev_ix ~mod+ best_len) > mask) or
(this.byte_at(s: args.data, i: cur_ix_masked ~mod+ best_len) <> this.byte_at(s: args.data, i: prev_ix ~mod+ best_len)) {
i ~mod+= 1
continue
}
len = this.find_match_length_with_limit(s: args.data, i1: prev_ix, i2: cur_ix_masked, limit: args.max_length)
if (len >= 3) or ((len == 2) and (i < 2)) {
score = this.backward_reference_score_using_last_distance(copy_length: len)
if best_score < score {
if i <> 0 {
score ~mod-= this.backward_reference_penalty_using_last_distance(distance_short_code: i as base.u64)
}
if best_score < score {
best_score = score
best_len = len
this.sr_len = best_len
this.sr_distance = backward
this.sr_score = best_score
}
}
}
i ~mod+= 1
}
return best_len
}
// try_bucket_entry is the body of the bucket loop shared by the H5, H6, H58
// and H68 FN(FindLongestMatch) functions, for one prev_ix candidate. It
// returns 0 to continue, 1 to break, or 2 + the new best_len.
pri func encoder.try_bucket_entry!(data: roslice base.u8, cur_ix: base.u64, prev_ix_in: base.u64, best_len: base.u64, max_length: base.u64, max_backward: base.u64) base.u64 {
var mask : base.u64
var cur_ix_masked : base.u64
var prev_ix : base.u64
var backward : base.u64
var len : base.u64
var score : base.u64
mask = this.rb_mask as base.u64
cur_ix_masked = args.cur_ix & mask
backward = args.cur_ix ~mod- args.prev_ix_in
if backward > args.max_backward {
return 1
}
prev_ix = args.prev_ix_in & mask
if (cur_ix_masked ~mod+ args.best_len) > mask {
return 1
}
if ((prev_ix ~mod+ args.best_len) > mask) or
(this.load32le(s: args.data, i: (cur_ix_masked ~mod+ args.best_len) ~mod- 3) <>
this.load32le(s: args.data, i: (prev_ix ~mod+ args.best_len) ~mod- 3)) {
return 0
}
if (this.hasher_type == 6) or (this.hasher_type == 68) {
if this.load32le(s: args.data, i: cur_ix_masked) <> this.load32le(s: args.data, i: prev_ix) {
return 0
}
len = this.find_match_length_with_limit(s: args.data, i1: prev_ix ~mod+ 4, i2: cur_ix_masked ~mod+ 4,
limit: args.max_length ~mod- 4) ~mod+ 4
} else {
len = this.find_match_length_with_limit(s: args.data, i1: prev_ix, i2: cur_ix_masked, limit: args.max_length)
if len < 4 {
return 0
}
}
score = this.backward_reference_score(copy_length: len, backward_reference_offset: backward)
if this.sr_score < score {
// The C code's best_score is always equal to out->score here.
this.sr_len = len
this.sr_distance = backward
this.sr_score = score
return 2 ~mod+ len
}
return 0
}
// Mirrors FN(FindLongestMatch) in hash_longest_match_inc.h (H5) and
// hash_longest_match64_inc.h (H6).
pri func encoder.find_longest_match_h5!(wb: slice base.u8, cur_ix: base.u64, max_length: base.u64, max_backward: base.u64, dictionary_distance: base.u64, max_distance: base.u64) {
var data : roslice base.u8
var cur_ix_masked : base.u64
var min_score : base.u64
var best_len : base.u64
var key : base.u64
var num : base.u16
var block_size : base.u64
var block_mask : base.u64
var bucket : base.u64
var down : base.u64
var i : base.u64
var r : base.u64
if this.rb_buf_off > args.wb.length() {
return nothing
}
data = args.wb[this.rb_buf_off ..]
cur_ix_masked = args.cur_ix & (this.rb_mask as base.u64)
min_score = this.sr_score
key = this.hash_longest(data: data, i: cur_ix_masked) as base.u64
block_size = (1 as base.u64) << this.h_block_bits
block_mask = block_size ~mod- 1
bucket = this.h_off1 ~mod+ (4 ~mod* (key << this.h_block_bits))
best_len = this.find_last_distances!(data: data, cur_ix: args.cur_ix, max_length: args.max_length, max_backward: args.max_backward)
if best_len < 3 {
best_len = 3
}
num = this.peek_u16(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* key))
down = 0
if (num as base.u64) > block_size {
down = (num as base.u64) ~mod- block_size
}
i = num as base.u64
while i > down {
i ~mod-= 1
r = this.try_bucket_entry!(
data: data,
cur_ix: args.cur_ix,
prev_ix_in: this.load32le(s: args.wb, i: bucket ~mod+ (4 ~mod* (i & block_mask))) as base.u64,
best_len: best_len,
max_length: args.max_length,
max_backward: args.max_backward)
if r == 1 {
break
} else if r >= 2 {
best_len = r ~mod- 2
}
}
this.poke_u32!(s: args.wb, i: bucket ~mod+ (4 ~mod* ((num as base.u64) & block_mask)), v: (args.cur_ix & 0xFFFF_FFFF) as base.u32)
this.poke_u16!(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* key), v: num ~mod+ 1)
if min_score == this.sr_score {
this.search_in_static_dictionary!(data: data, i: cur_ix_masked, max_length: args.max_length,
max_backward: args.dictionary_distance, max_distance: args.max_distance, shallow: false)
}
}
// Mirrors FN(FindLongestMatch) in hash_longest_match_simd_inc.h (H58) and
// hash_longest_match64_simd_inc.h (H68), with GetMatchingTagMask in
// matching_tag_mask.h evaluated one tag at a time.
pri func encoder.find_longest_match_h58!(wb: slice base.u8, cur_ix: base.u64, max_length: base.u64, max_backward: base.u64, dictionary_distance: base.u64, max_distance: base.u64) {
var data : roslice base.u8
var cur_ix_masked : base.u64
var min_score : base.u64
var best_len : base.u64
var hash : base.u32
var key : base.u64
var tag : base.u8
var num : base.u16
var n : base.u16
var block_size : base.u64
var block_mask : base.u64
var bucket : base.u64
var tag_bucket : base.u64
var head : base.u64
var limit : base.u64
var k : base.u64
var rb_index : base.u64
var r : base.u64
if this.rb_buf_off > args.wb.length() {
return nothing
}
data = args.wb[this.rb_buf_off ..]
cur_ix_masked = args.cur_ix & (this.rb_mask as base.u64)
min_score = this.sr_score
hash = this.hash_longest(data: data, i: cur_ix_masked)
key = (hash >> 8) as base.u64
block_size = (1 as base.u64) << this.h_block_bits
block_mask = block_size ~mod- 1
bucket = this.h_off2 ~mod+ (4 ~mod* (key << this.h_block_bits))
tag_bucket = this.h_off1 ~mod+ (key << this.h_block_bits)
best_len = this.find_last_distances!(data: data, cur_ix: args.cur_ix, max_length: args.max_length, max_backward: args.max_backward)
if best_len < 3 {
best_len = 3
}
tag = (hash & 0xFF) as base.u8
num = this.peek_u16(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* key))
head = ((num ~mod+ 1) as base.u64) & block_mask
// Mask off any matches from uninitialized tags: only the n newest
// entries are valid, if the bucket has unused slots.
n = 0xFFFF ~mod- num
limit = block_size
if block_size > (n as base.u64) {
limit = n as base.u64
}
k = 0
while k < limit {
rb_index = (head ~mod+ k) & block_mask
if this.byte_at(s: args.wb, i: tag_bucket ~mod+ rb_index) == tag {
r = this.try_bucket_entry!(
data: data,
cur_ix: args.cur_ix,
prev_ix_in: this.load32le(s: args.wb, i: bucket ~mod+ (4 ~mod* rb_index)) as base.u64,
best_len: best_len,
max_length: args.max_length,
max_backward: args.max_backward)
if r == 1 {
break
} else if r >= 2 {
best_len = r ~mod- 2
}
}
k ~mod+= 1
}
this.poke_u32!(s: args.wb, i: bucket ~mod+ (4 ~mod* ((num as base.u64) & block_mask)), v: (args.cur_ix & 0xFFFF_FFFF) as base.u32)
this.set_byte!(s: args.wb, i: tag_bucket ~mod+ ((num as base.u64) & block_mask), v: tag)
this.poke_u16!(s: args.wb, i: this.h_off0 ~mod+ (2 ~mod* key), v: num ~mod- 1)
if min_score == this.sr_score {
this.search_in_static_dictionary!(data: data, i: cur_ix_masked, max_length: args.max_length,
max_backward: args.dictionary_distance, max_distance: args.max_distance, shallow: false)
}
}
// Mirrors FN(FindLongestMatch) in hash_forgetful_chain_inc.h.
pri func encoder.find_longest_match_forgetful!(wb: slice base.u8, cur_ix: base.u64, max_length: base.u64, max_backward: base.u64, dictionary_distance: base.u64, max_distance: base.u64) {
var data : roslice base.u8
var mask : base.u64
var cur_ix_masked : base.u64
var min_score : base.u64
var best_score : base.u64
var best_len : base.u64
var key : base.u64
var tiny_hash : base.u8
var i : base.u32
var n_last : base.u32[..= 16]
var backward : base.u64
var prev_ix : base.u64
var len : base.u64
var score : base.u64
var bank : base.u64
var hops : base.u64
var delta : base.u64
var slot : base.u64
var last : base.u64
var slot_off : base.u64
var fc_bits : base.u32[..= 16]
if this.rb_buf_off > args.wb.length() {
return nothing
}
data = args.wb[this.rb_buf_off ..]
mask = this.rb_mask as base.u64
cur_ix_masked = args.cur_ix & mask
min_score = this.sr_score
best_score = this.sr_score
best_len = this.sr_len
key = this.hash_forgetful(data: data, i: cur_ix_masked) as base.u64
tiny_hash = (key & 0xFF) as base.u8
this.sr_len = 0
this.sr_len_code_delta = 0
n_last = this.fc_num_last_distances()
i = 0
while i < n_last {
backward = this.dist_cache_u64(i: i)
prev_ix = args.cur_ix ~mod- backward
if (i > 0) and (this.byte_at(s: args.wb, i: (this.h_off0 ~mod+ 0x3_0000) ~mod+ (prev_ix & 0xFFFF)) <> tiny_hash) {
i ~mod+= 1
continue
}
if (prev_ix >= args.cur_ix) or (backward > args.max_backward) {
i ~mod+= 1
continue
}
prev_ix &= mask
len = this.find_match_length_with_limit(s: data, i1: prev_ix, i2: cur_ix_masked, limit: args.max_length)
if len >= 2 {
score = this.backward_reference_score_using_last_distance(copy_length: len)
if best_score < score {
if i <> 0 {
score ~mod-= this.backward_reference_penalty_using_last_distance(distance_short_code: i as base.u64)
}
if best_score < score {
best_score = score
best_len = len
this.sr_len = best_len
this.sr_distance = backward
this.sr_score = best_score
}
}
}
i ~mod+= 1
}
if best_len < 3 {
best_len = 3
}
fc_bits = this.fc_bank_bits()
bank = key & this.fc_num_banks_minus_1()
backward = 0
hops = this.fc_max_hops
delta = args.cur_ix ~mod- (this.load32le(s: args.wb, i: this.h_off0 ~mod+ (4 ~mod* key)) as base.u64)
slot = this.peek_u16(s: args.wb, i: (this.h_off0 ~mod+ 0x2_0000) ~mod+ (2 ~mod* key)) as base.u64
while hops > 0 {
hops -= 1
last = slot
backward ~mod+= delta
if backward > args.max_backward {
break
}
prev_ix = (args.cur_ix ~mod- backward) & mask
slot_off = this.h_off1 ~mod+ (4 ~mod* ((bank ~mod<< fc_bits) ~mod+ last))
slot = this.peek_u16(s: args.wb, i: slot_off ~mod+ 2) as base.u64
delta = this.peek_u16(s: args.wb, i: slot_off) as base.u64
if ((cur_ix_masked ~mod+ best_len) > mask) or
((prev_ix ~mod+ best_len) > mask) or
(this.load32le(s: data, i: (cur_ix_masked ~mod+ best_len) ~mod- 3) <>
this.load32le(s: data, i: (prev_ix ~mod+ best_len) ~mod- 3)) {
continue
}
len = this.find_match_length_with_limit(s: data, i1: prev_ix, i2: cur_ix_masked, limit: args.max_length)
if len >= 4 {
score = this.backward_reference_score(copy_length: len, backward_reference_offset: backward)
if best_score < score {
best_score = score
best_len = len
this.sr_len = best_len
this.sr_distance = backward
this.sr_score = best_score
}
}
}
this.hasher_store!(wb: args.wb, ix: args.cur_ix)
if this.sr_score == min_score {
this.search_in_static_dictionary!(data: data, i: cur_ix_masked, max_length: args.max_length,
max_backward: args.dictionary_distance, max_distance: args.max_distance, shallow: false)
}
}
+625
View File
@@ -0,0 +1,625 @@
// Copyright 2026 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
// This file mirrors BrotliBuildMetaBlockGreedy (metablock.c and
// metablock_inc.h), the metablock builder for qualities 4 to 9, and
// BrotliOptimizeHistograms (metablock.c) with
// BrotliOptimizeHuffmanCountsForRle (entropy_encode.c).
//
// The C code's three FN(BlockSplitter)s and its ContextBlockSplitter are one
// greedy block splitter here (the gbs_etc functions and fields), indexed by
// the block category c: 0 for literals, 1 for commands and 2 for distances.
// A FN(BlockSplitter) is a ContextBlockSplitter with one context: the two
// make the same decisions, with the same floating point operations (adding
// to an initial 0.0 does not change a non-zero sum, and a zero sum compares
// the same either way).
//
// The metablock split (the C code's MetaBlockSplit) is in the workbuf: for
// each category, the block types (u8), the block lengths (u32le) and the
// histograms (data_size u32le counts each, without the C code's total_count_
// and bit_cost_ fields, which BrotliStoreMetaBlock does not use). The
// literal context map (when there is more than one literal context) is
// stored as u8 values: they are less than 256.
// Mirrors BROTLI_MAX_NUMBER_OF_BLOCK_TYPES in constants.h.
pri const GBS_MAX_NUMBER_OF_BLOCK_TYPES : base.u32 = 256
// The doubles 400.0, 500.0, 100.0 and 20.0.
pri const GBS_F64_400 : base.u64 = 0x4079_0000_0000_0000
pri const GBS_F64_500 : base.u64 = 0x407F_4000_0000_0000
pri const GBS_F64_100 : base.u64 = 0x4059_0000_0000_0000
pri const GBS_F64_20 : base.u64 = 0x4034_0000_0000_0000
// gbs_histo_off returns the workbuf offset of category c's histogram ix.
pri func encoder.gbs_histo_off(c: base.u32[..= 3], ix: base.u64) base.u64 {
return this.gbs_histo_off_base[args.c] ~mod+ (args.ix ~mod* ((this.gbs_data_size[args.c] as base.u64) * 4))
}
// gbs_entropy returns BrotliBitsEntropy of the size u32le values at
// args.wb[off ..].
pri func encoder.gbs_entropy(wb: roslice base.u8, off: base.u64, size: base.u64) base.u64 {
if args.off <= args.wb.length() {
return this.bc.bits_entropy(population: args.wb[args.off ..], size: args.size)
}
return 0
}
// gbs_clear sets the n u32le values at args.wb[off ..] to zero.
pri func encoder.gbs_clear!(wb: slice base.u8, off: base.u64, n: base.u64) {
this.fill_bytes!(s: args.wb, i: args.off, n: args.n ~mod* 4, v: 0)
}
// gbs_copy copies the n u32le values at args.wb[src ..] to args.wb[dst ..].
pri func encoder.gbs_copy!(wb: slice base.u8, dst: base.u64, src: base.u64, n: base.u64) {
var i : base.u64
i = 0
while i < args.n {
this.poke_u32!(s: args.wb, i: args.dst ~mod+ (i ~mod* 4),
v: this.load32le(s: args.wb, i: args.src ~mod+ (i ~mod* 4)))
i ~mod+= 1
}
}
// gbs_add_histogram adds the n u32le values at args.wb[src ..] to those at
// args.wb[dst ..].
pri func encoder.gbs_add_histogram!(wb: slice base.u8, dst: base.u64, src: base.u64, n: base.u64) {
var i : base.u64
i = 0
while i < args.n {
this.poke_u32!(s: args.wb, i: args.dst ~mod+ (i ~mod* 4),
v: this.load32le(s: args.wb, i: args.dst ~mod+ (i ~mod* 4)) ~mod+
this.load32le(s: args.wb, i: args.src ~mod+ (i ~mod* 4)))
i ~mod+= 1
}
}
// Mirrors FN(InitBlockSplitter) in metablock_inc.h and
// InitContextBlockSplitter in metablock.c. The workbuf offsets of the
// category's split and histograms were set by compute_layout.
pri func encoder.gbs_init!(wb: slice base.u8, c: base.u32[..= 3], alphabet_size: base.u32, data_size: base.u32,
num_contexts: base.u32, min_block_size: base.u32, split_threshold: base.u64, num_symbols: base.u64) {
var max_num_blocks : base.u64
var max_num_types : base.u64
var nc : base.u32
nc = args.num_contexts.max(no_less_than: 1)
this.gbs_alphabet_size[args.c] = args.alphabet_size
this.gbs_data_size[args.c] = args.data_size
this.gbs_num_contexts[args.c] = nc
this.gbs_max_block_types[args.c] = GBS_MAX_NUMBER_OF_BLOCK_TYPES / nc
this.gbs_min_block_size[args.c] = args.min_block_size.max(no_less_than: 1)
this.gbs_split_threshold[args.c] = args.split_threshold
this.gbs_num_blocks[args.c] = 0
this.gbs_num_types[args.c] = 0
this.gbs_target_block_size[args.c] = this.gbs_min_block_size[args.c] as base.u64
this.gbs_block_size[args.c] = 0
this.gbs_curr_histogram_ix[args.c] = 0
this.gbs_merge_last_count[args.c] = 0
max_num_blocks = (args.num_symbols / (this.gbs_min_block_size[args.c] as base.u64)) ~mod+ 1
max_num_types = max_num_blocks.min(no_more_than: (this.gbs_max_block_types[args.c] as base.u64) + 1)
this.gbs_split_num_blocks[args.c] = max_num_blocks
this.gbs_histograms_size[args.c] = max_num_types ~mod* (nc as base.u64)
// Clear only current histogram.
this.gbs_clear!(wb: args.wb, off: this.gbs_histo_off(c: args.c, ix: 0),
n: (nc as base.u64) ~mod* (args.data_size as base.u64))
this.gbs_last_histogram_ix[(args.c * 2) + 0] = 0
this.gbs_last_histogram_ix[(args.c * 2) + 1] = 0
}
// Mirrors FN(BlockSplitterFinishBlock) in metablock_inc.h and
// ContextBlockSplitterFinishBlock in metablock.c.
pri func encoder.gbs_finish_block!(wb: slice base.u8, c: base.u32[..= 3], is_final: base.bool) {
var nc : base.u64
var i : base.u64
var j : base.u64
var jx : base.u64
var alphabet_size : base.u64
var data_size : base.u64
var num_blocks : base.u64
var curr : base.u64
var tmp : base.u64
var e : base.u64
var d : base.u64
var diff0 : base.u64
var diff1 : base.u64
var threshold : base.u64
var types_off : base.u64
var lengths_off : base.u64
var le_base : base.u32[..= 96]
var last0 : base.u64
var last1 : base.u64
nc = this.gbs_num_contexts[args.c] as base.u64
alphabet_size = this.gbs_alphabet_size[args.c] as base.u64
data_size = this.gbs_data_size[args.c] as base.u64
num_blocks = this.gbs_num_blocks[args.c]
curr = this.gbs_curr_histogram_ix[args.c]
threshold = this.gbs_split_threshold[args.c]
types_off = this.gbs_types_off[args.c]
lengths_off = this.gbs_lengths_off[args.c]
le_base = args.c * 32
if this.gbs_block_size[args.c] < (this.gbs_min_block_size[args.c] as base.u64) {
this.gbs_block_size[args.c] = this.gbs_min_block_size[args.c] as base.u64
}
if num_blocks == 0 {
// Create first block.
this.poke_u32!(s: args.wb, i: lengths_off, v: (this.gbs_block_size[args.c] & 0xFFFF_FFFF) as base.u32)
this.set_byte!(s: args.wb, i: types_off, v: 0)
i = 0
while i < nc {
e = this.gbs_entropy(wb: args.wb, off: this.gbs_histo_off(c: args.c, ix: i), size: alphabet_size)
this.gbs_last_entropy[((le_base as base.u64) ~mod+ i) & 127] = e
this.gbs_last_entropy[(((le_base as base.u64) ~mod+ nc) ~mod+ i) & 127] = e
i ~mod+= 1
}
this.gbs_num_blocks[args.c] = num_blocks ~mod+ 1
this.gbs_num_types[args.c] ~mod+= 1
curr ~mod+= nc
this.gbs_curr_histogram_ix[args.c] = curr
if curr < this.gbs_histograms_size[args.c] {
this.gbs_clear!(wb: args.wb, off: this.gbs_histo_off(c: args.c, ix: curr), n: nc ~mod* data_size)
}
this.gbs_block_size[args.c] = 0
} else if this.gbs_block_size[args.c] > 0 {
// Try merging the set of histograms for the current block type with
// the respective set of histograms for the last and second last
// block types. Decide over the split based on the total reduction of
// entropy across all contexts.
last0 = this.gbs_last_histogram_ix[(args.c * 2) + 0]
last1 = this.gbs_last_histogram_ix[(args.c * 2) + 1]
i = 0
while i < nc {
e = this.gbs_entropy(wb: args.wb, off: this.gbs_histo_off(c: args.c, ix: curr ~mod+ i), size: alphabet_size)
this.gbs_entropy_tmp[i & 15] = e
j = 0
while j < 2 {
jx = (j ~mod* nc) ~mod+ i
tmp = this.mb_comb_off ~mod+ ((jx ~mod* data_size) ~mod* 4)
this.gbs_copy!(wb: args.wb, dst: tmp, src: this.gbs_histo_off(c: args.c, ix: curr ~mod+ i), n: data_size)
if j == 0 {
this.gbs_add_histogram!(wb: args.wb, dst: tmp, src: this.gbs_histo_off(c: args.c, ix: last0 ~mod+ i), n: data_size)
} else {
this.gbs_add_histogram!(wb: args.wb, dst: tmp, src: this.gbs_histo_off(c: args.c, ix: last1 ~mod+ i), n: data_size)
}
this.gbs_comb_entropy[jx & 31] = this.gbs_entropy(wb: args.wb, off: tmp, size: alphabet_size)
d = this.sf.f64_sub(
a: this.sf.f64_sub(a: this.gbs_comb_entropy[jx & 31], b: e),
b: this.gbs_last_entropy[((le_base as base.u64) ~mod+ jx) & 127])
if j == 0 {
if nc == 1 {
diff0 = d
} else {
diff0 = this.sf.f64_add(a: diff0, b: d)
}
} else {
if nc == 1 {
diff1 = d
} else {
diff1 = this.sf.f64_add(a: diff1, b: d)
}
}
j ~mod+= 1
}
i ~mod+= 1
}
if (this.gbs_num_types[args.c] < this.gbs_max_block_types[args.c]) and
(this.sf.f64_gt(a: diff0, b: threshold) <> 0) and
(this.sf.f64_gt(a: diff1, b: threshold) <> 0) {
// Create new block.
this.poke_u32!(s: args.wb, i: lengths_off ~mod+ (num_blocks ~mod* 4),
v: (this.gbs_block_size[args.c] & 0xFFFF_FFFF) as base.u32)
this.set_byte!(s: args.wb, i: types_off ~mod+ num_blocks,
v: (this.gbs_num_types[args.c] & 0xFF) as base.u8)
this.gbs_last_histogram_ix[(args.c * 2) + 1] = last0
this.gbs_last_histogram_ix[(args.c * 2) + 0] = (this.gbs_num_types[args.c] as base.u64) ~mod* nc
i = 0
while i < nc {
this.gbs_last_entropy[(((le_base as base.u64) ~mod+ nc) ~mod+ i) & 127] =
this.gbs_last_entropy[((le_base as base.u64) ~mod+ i) & 127]
this.gbs_last_entropy[((le_base as base.u64) ~mod+ i) & 127] = this.gbs_entropy_tmp[i & 15]
i ~mod+= 1
}
this.gbs_num_blocks[args.c] = num_blocks ~mod+ 1
this.gbs_num_types[args.c] ~mod+= 1
curr ~mod+= nc
this.gbs_curr_histogram_ix[args.c] = curr
if curr < this.gbs_histograms_size[args.c] {
this.gbs_clear!(wb: args.wb, off: this.gbs_histo_off(c: args.c, ix: curr), n: nc ~mod* data_size)
}
this.gbs_block_size[args.c] = 0
this.gbs_merge_last_count[args.c] = 0
this.gbs_target_block_size[args.c] = this.gbs_min_block_size[args.c] as base.u64
} else if this.sf.f64_lt(a: diff1, b: this.sf.f64_sub(a: diff0, b: GBS_F64_20)) <> 0 {
// Combine this block with second last block.
this.poke_u32!(s: args.wb, i: lengths_off ~mod+ (num_blocks ~mod* 4),
v: (this.gbs_block_size[args.c] & 0xFFFF_FFFF) as base.u32)
this.set_byte!(s: args.wb, i: types_off ~mod+ num_blocks,
v: this.byte_at(s: args.wb, i: types_off ~mod+ (num_blocks ~mod- 2)))
this.gbs_last_histogram_ix[(args.c * 2) + 0] = last1
this.gbs_last_histogram_ix[(args.c * 2) + 1] = last0
i = 0
while i < nc {
this.gbs_copy!(wb: args.wb, dst: this.gbs_histo_off(c: args.c, ix: last1 ~mod+ i),
src: this.mb_comb_off ~mod+ (((nc ~mod+ i) ~mod* data_size) ~mod* 4), n: data_size)
this.gbs_last_entropy[(((le_base as base.u64) ~mod+ nc) ~mod+ i) & 127] =
this.gbs_last_entropy[((le_base as base.u64) ~mod+ i) & 127]
this.gbs_last_entropy[((le_base as base.u64) ~mod+ i) & 127] = this.gbs_comb_entropy[(nc ~mod+ i) & 31]
this.gbs_clear!(wb: args.wb, off: this.gbs_histo_off(c: args.c, ix: curr ~mod+ i), n: data_size)
i ~mod+= 1
}
this.gbs_num_blocks[args.c] = num_blocks ~mod+ 1
this.gbs_block_size[args.c] = 0
this.gbs_merge_last_count[args.c] = 0
this.gbs_target_block_size[args.c] = this.gbs_min_block_size[args.c] as base.u64
} else {
// Combine this block with last block.
tmp = lengths_off ~mod+ ((num_blocks ~mod- 1) ~mod* 4)
this.poke_u32!(s: args.wb, i: tmp,
v: this.load32le(s: args.wb, i: tmp) ~mod+ ((this.gbs_block_size[args.c] & 0xFFFF_FFFF) as base.u32))
i = 0
while i < nc {
this.gbs_copy!(wb: args.wb, dst: this.gbs_histo_off(c: args.c, ix: last0 ~mod+ i),
src: this.mb_comb_off ~mod+ ((i ~mod* data_size) ~mod* 4), n: data_size)
this.gbs_last_entropy[((le_base as base.u64) ~mod+ i) & 127] = this.gbs_comb_entropy[i & 31]
if this.gbs_num_types[args.c] == 1 {
this.gbs_last_entropy[(((le_base as base.u64) ~mod+ nc) ~mod+ i) & 127] =
this.gbs_last_entropy[((le_base as base.u64) ~mod+ i) & 127]
}
this.gbs_clear!(wb: args.wb, off: this.gbs_histo_off(c: args.c, ix: curr ~mod+ i), n: data_size)
i ~mod+= 1
}
this.gbs_block_size[args.c] = 0
this.gbs_merge_last_count[args.c] ~mod+= 1
if this.gbs_merge_last_count[args.c] > 1 {
this.gbs_target_block_size[args.c] ~mod+= this.gbs_min_block_size[args.c] as base.u64
}
}
}
if args.is_final {
this.gbs_histograms_size[args.c] = (this.gbs_num_types[args.c] as base.u64) ~mod* nc
this.gbs_split_num_blocks[args.c] = this.gbs_num_blocks[args.c]
}
}
// Mirrors FN(BlockSplitterAddSymbol) in metablock_inc.h and
// ContextBlockSplitterAddSymbol in metablock.c.
pri func encoder.gbs_add_symbol!(wb: slice base.u8, c: base.u32[..= 3], symbol: base.u64, context: base.u64) {
var off : base.u64
off = this.gbs_histo_off(c: args.c, ix: this.gbs_curr_histogram_ix[args.c] ~mod+ args.context) ~mod+ (args.symbol ~mod* 4)
this.poke_u32!(s: args.wb, i: off, v: this.load32le(s: args.wb, i: off) ~mod+ 1)
this.gbs_block_size[args.c] ~mod+= 1
if this.gbs_block_size[args.c] == this.gbs_target_block_size[args.c] {
this.gbs_finish_block!(wb: args.wb, c: args.c, is_final: false)
}
}
// static_context_map returns the C code's static_context_map[j] for the
// given number of literal contexts: kStaticContextMapSimpleUTF8 (2),
// kStaticContextMapContinuation (3) or kStaticContextMapComplexUTF8 (13).
pri func encoder.static_context_map(num_contexts: base.u32, j: base.u32) base.u32 {
if args.num_contexts == 2 {
return STATIC_CONTEXT_MAP_SIMPLE_UTF8[args.j & 63] as base.u32
} else if args.num_contexts == 3 {
return STATIC_CONTEXT_MAP_CONTINUATION[args.j & 63] as base.u32
} else if args.num_contexts == 13 {
return STATIC_CONTEXT_MAP_COMPLEX_UTF8[args.j & 63] as base.u32
}
return 0
}
// Mirrors BrotliBuildMetaBlockGreedy (and BrotliBuildMetaBlockGreedyInternal
// and MapStaticContexts) in metablock.c. The literal context mode is
// CONTEXT_UTF8, the only one below quality 10.
pri func encoder.build_meta_block_greedy!(wb: slice base.u8, pos: base.u64, prev_byte: base.u8, prev_byte2: base.u8,
num_contexts: base.u32, n_commands: base.u64) {
var pos : base.u64
var prev_byte : base.u8
var prev_byte2 : base.u8
var num_literals : base.u64
var i : base.u64
var j : base.u32
var k : base.u32
var literal : base.u8
var context : base.u32
var cmd_prefix : base.u16
var copy_len : base.u32
var num_types : base.u32
var offset : base.u32
pos = args.pos
prev_byte = args.prev_byte
prev_byte2 = args.prev_byte2
i = 0
while i < args.n_commands {
num_literals ~mod+= this.cmd_insert_len(wb: args.wb, i: i) as base.u64
i ~mod+= 1
}
this.gbs_init!(wb: args.wb, c: 0, alphabet_size: 256, data_size: 256, num_contexts: args.num_contexts,
min_block_size: 512, split_threshold: GBS_F64_400, num_symbols: num_literals)
this.gbs_init!(wb: args.wb, c: 1, alphabet_size: 704, data_size: 704, num_contexts: 1,
min_block_size: 1024, split_threshold: GBS_F64_500, num_symbols: args.n_commands)
this.gbs_init!(wb: args.wb, c: 2, alphabet_size: 64, data_size: 544, num_contexts: 1,
min_block_size: 512, split_threshold: GBS_F64_100, num_symbols: args.n_commands)
i = 0
while i < args.n_commands {
cmd_prefix = this.cmd_cmd_prefix(wb: args.wb, i: i)
this.gbs_add_symbol!(wb: args.wb, c: 1, symbol: cmd_prefix as base.u64, context: 0)
j = this.cmd_insert_len(wb: args.wb, i: i)
while j > 0 {
literal = this.rb_byte(wb: args.wb, pos: pos)
if args.num_contexts <= 1 {
this.gbs_add_symbol!(wb: args.wb, c: 0, symbol: literal as base.u64, context: 0)
} else {
context = (CONTEXT_LOOKUP[1024 + (prev_byte as base.u32)] |
CONTEXT_LOOKUP[1280 + (prev_byte2 as base.u32)]) as base.u32
this.gbs_add_symbol!(wb: args.wb, c: 0, symbol: literal as base.u64,
context: this.static_context_map(num_contexts: args.num_contexts, j: context) as base.u64)
}
prev_byte2 = prev_byte
prev_byte = literal
pos ~mod+= 1
j -= 1
}
copy_len = this.cmd_copy_len(wb: args.wb, i: i)
pos ~mod+= copy_len as base.u64
if copy_len <> 0 {
prev_byte2 = this.rb_byte(wb: args.wb, pos: pos ~mod- 2)
prev_byte = this.rb_byte(wb: args.wb, pos: pos ~mod- 1)
if cmd_prefix >= 128 {
this.gbs_add_symbol!(wb: args.wb, c: 2,
symbol: (this.cmd_dist_prefix(wb: args.wb, i: i) & 0x3FF) as base.u64, context: 0)
}
}
i ~mod+= 1
}
this.gbs_finish_block!(wb: args.wb, c: 0, is_final: true)
this.gbs_finish_block!(wb: args.wb, c: 1, is_final: true)
this.gbs_finish_block!(wb: args.wb, c: 2, is_final: true)
this.mb_cmap_size = 0
if args.num_contexts > 1 {
// MapStaticContexts.
num_types = this.gbs_num_types[0]
this.mb_cmap_size = (num_types as base.u64) << 6
k = 0
while k < num_types {
offset = k ~mod* args.num_contexts
j = 0
while j < 64 {
this.set_byte!(s: args.wb, i: this.mb_cmap_off ~mod+ (((k as base.u64) << 6) | (j as base.u64)),
v: ((offset ~mod+ this.static_context_map(num_contexts: args.num_contexts, j: j)) & 0xFF) as base.u8)
j ~mod+= 1
}
k ~mod+= 1
}
}
}
// Mirrors BrotliOptimizeHistograms in metablock.c.
pri func encoder.optimize_histograms!(wb: slice base.u8, num_distance_codes: base.u32) {
var i : base.u64
i = 0
while i < this.gbs_histograms_size[0] {
this.optimize_huffman_counts_for_rle!(wb: args.wb, off: this.gbs_histo_off(c: 0, ix: i), length: 256)
i ~mod+= 1
}
i = 0
while i < this.gbs_histograms_size[1] {
this.optimize_huffman_counts_for_rle!(wb: args.wb, off: this.gbs_histo_off(c: 1, ix: i), length: 704)
i ~mod+= 1
}
i = 0
while i < this.gbs_histograms_size[2] {
this.optimize_huffman_counts_for_rle!(wb: args.wb, off: this.gbs_histo_off(c: 2, ix: i),
length: args.num_distance_codes as base.u64)
i ~mod+= 1
}
}
// Mirrors BrotliOptimizeHuffmanCountsForRle in entropy_encode.c, for the
// length u32le counts at args.wb[off ..]. The good_for_rle array is
// this.good_for_rle.
pri func encoder.optimize_huffman_counts_for_rle!(wb: slice base.u8, off: base.u64, length: base.u64) {
var length : base.u64
var nonzero_count : base.u64
var stride : base.u64
var limit : base.u64
var sum : base.u64
var i : base.u64
var k : base.u64
var nonzeros : base.u64
var smallest_nonzero : base.u32
var zeros : base.u64
var symbol : base.u32
var step : base.u64
var count : base.u64
var c : base.u32
var cond : base.bool
length = args.length.min(no_more_than: 704)
i = 0
while i < length {
if this.ctr(wb: args.wb, off: args.off, i: i) <> 0 {
nonzero_count ~mod+= 1
}
i ~mod+= 1
}
if nonzero_count < 16 {
return nothing
}
while (length <> 0) and (this.ctr(wb: args.wb, off: args.off, i: length ~mod- 1) == 0) {
length ~mod-= 1
}
if length == 0 {
return nothing // All zeros.
}
// Now counts[0..length - 1] does not have trailing zeros.
smallest_nonzero = 0x4000_0000
i = 0
while i < length {
c = this.ctr(wb: args.wb, off: args.off, i: i)
if c <> 0 {
nonzeros ~mod+= 1
if smallest_nonzero > c {
smallest_nonzero = c
}
}
i ~mod+= 1
}
if nonzeros < 5 {
// Small histogram will model it well.
return nothing
}
if smallest_nonzero < 4 {
zeros = length ~mod- nonzeros
if zeros < 6 {
i = 1
while (i ~mod+ 1) < length {
if (this.ctr(wb: args.wb, off: args.off, i: i ~mod- 1) <> 0) and
(this.ctr(wb: args.wb, off: args.off, i: i) == 0) and
(this.ctr(wb: args.wb, off: args.off, i: i ~mod+ 1) <> 0) {
this.poke_u32!(s: args.wb, i: args.off ~mod+ (i ~mod* 4), v: 1)
}
i ~mod+= 1
}
}
}
if nonzeros < 28 {
return nothing
}
// 2) Let's mark all population counts that already can be encoded with
// an RLE code.
i = 0
while i < length {
this.good_for_rle[i & 1023] = 0
i ~mod+= 1
}
// Let's not spoil any of the existing good RLE codes. Mark any seq of 0's
// that is longer as 5 as a good_for_rle. Mark any seq of non-0's that is
// longer as 7 as a good_for_rle.
symbol = this.ctr(wb: args.wb, off: args.off, i: 0)
step = 0
i = 0
while i <= length {
if (i == length) or (this.ctr(wb: args.wb, off: args.off, i: i) <> symbol) {
if ((symbol == 0) and (step >= 5)) or ((symbol <> 0) and (step >= 7)) {
k = 0
while k < step {
this.good_for_rle[((i ~mod- k) ~mod- 1) & 1023] = 1
k ~mod+= 1
}
}
step = 1
if i <> length {
symbol = this.ctr(wb: args.wb, off: args.off, i: i)
}
} else {
step ~mod+= 1
}
i ~mod+= 1
}
// 3) Let's replace those population counts that lead to more RLE codes.
// Math here is in 24.8 fixed point representation.
stride = 0
limit = this.rle_limit3(wb: args.wb, off: args.off, i: 0)
sum = 0
i = 0
while i <= length {
cond = (i == length)
if not cond {
cond = (this.good_for_rle[i & 1023] <> 0)
}
if (not cond) and (i <> 0) {
cond = (this.good_for_rle[(i - 1) & 1023] <> 0)
}
if not cond {
cond = ((((this.ctr(wb: args.wb, off: args.off, i: i) ~mod* 256) as base.u64) ~mod- limit) ~mod+ 1240) >= 2480
}
if cond {
if (stride >= 4) or ((stride >= 3) and (sum == 0)) {
// The stride must end, collapse what we have, if we have
// enough (4).
count = (sum ~mod+ (stride / 2)) / stride.max(no_less_than: 1)
if count == 0 {
count = 1
}
if sum == 0 {
// Don't make an all zeros stride to be upgraded to ones.
count = 0
}
k = 0
while k < stride {
// We don't want to change value at counts[i], that is
// already belonging to the next stride. Thus - 1.
this.poke_u32!(s: args.wb, i: args.off ~mod+ (((i ~mod- k) ~mod- 1) ~mod* 4),
v: (count & 0xFFFF_FFFF) as base.u32)
k ~mod+= 1
}
}
stride = 0
sum = 0
if (i ~mod+ 2) < length {
// All interesting strides have a count of at least 4, at
// least when non-zeros.
limit = this.rle_limit3(wb: args.wb, off: args.off, i: i)
} else if i < length {
limit = (this.ctr(wb: args.wb, off: args.off, i: i) ~mod* 256) as base.u64
} else {
limit = 0
}
}
stride ~mod+= 1
if i <> length {
sum ~mod+= this.ctr(wb: args.wb, off: args.off, i: i) as base.u64
if stride >= 4 {
limit = ((sum ~mod* 256) ~mod+ (stride / 2)) / stride.max(no_less_than: 1)
}
if stride == 4 {
limit ~mod+= 120
}
}
i ~mod+= 1
}
}
// ctr returns counts[i], the u32le at args.wb[off + (4 * i) ..].
pri func encoder.ctr(wb: roslice base.u8, off: base.u64, i: base.u64) base.u32 {
return this.load32le(s: args.wb, i: args.off ~mod+ (args.i ~mod* 4))
}
// rle_limit3 returns the C code's (size_t)(256 * (counts[i] + counts[i + 1]
// + counts[i + 2]) / 3 + 420), computed in uint32_t arithmetic.
pri func encoder.rle_limit3(wb: roslice base.u8, off: base.u64, i: base.u64) base.u64 {
var s : base.u32
s = this.ctr(wb: args.wb, off: args.off, i: args.i)
s ~mod+= this.ctr(wb: args.wb, off: args.off, i: args.i ~mod+ 1)
s ~mod+= this.ctr(wb: args.wb, off: args.off, i: args.i ~mod+ 2)
return (((s ~mod* 256) / 3) ~mod+ 420) as base.u64
}
+116
View File
@@ -0,0 +1,116 @@
// Copyright 2026 The Wuffs Authors.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//
// SPDX-License-Identifier: Apache-2.0 OR MIT
// --------
// This file holds small helpers for the quality 2 (and above) code paths,
// which keep most of their state (the ring buffer, the hash tables, the
// commands, the output storage and the metablock split) in the workbuf. Like
// the C code's uint16_t and uint32_t arrays, multi-byte values in the workbuf
// are little-endian. The C code never reads or writes out of bounds, so the
// out of bounds branches here (which do nothing, or return 0) should never be
// taken.
// byte_at returns s[i], or 0 if i is out of bounds.
pri func encoder.byte_at(s: roslice base.u8, i: base.u64) base.u8 {
if args.i < args.s.length() {
return args.s[args.i]
}
return 0
}
// peek_u16 returns the 2 bytes (little-endian) of s starting at i.
pri func encoder.peek_u16(s: roslice base.u8, i: base.u64) base.u16 {
var q : roslice base.u8
if args.i < args.s.length() {
q = args.s[args.i ..]
if q.length() >= 2 {
return q.peek_u16le()
}
}
return 0
}
// poke_u16 sets the 2 bytes (little-endian) of s starting at i.
pri func encoder.poke_u16!(s: slice base.u8, i: base.u64, v: base.u16) {
var q : slice base.u8
if args.i < args.s.length() {
q = args.s[args.i ..]
if q.length() >= 2 {
q.poke_u16le!(a: args.v)
}
}
}
// poke_u32 sets the 4 bytes (little-endian) of s starting at i.
pri func encoder.poke_u32!(s: slice base.u8, i: base.u64, v: base.u32) {
var q : slice base.u8
if args.i < args.s.length() {
q = args.s[args.i ..]
if q.length() >= 4 {
q.poke_u32le!(a: args.v)
}
}
}
// set_byte sets s[i] to v, if i is in bounds.
pri func encoder.set_byte!(s: slice base.u8, i: base.u64, v: base.u8) {
if args.i < args.s.length() {
args.s[args.i] = args.v
}
}
// fill_bytes sets s[i .. i + n] to v (as far as it is in bounds).
pri func encoder.fill_bytes!(s: slice base.u8, i: base.u64, n: base.u64, v: base.u8) {
var q : slice base.u8
var n : base.u64
if args.i <= args.s.length() {
q = args.s[args.i ..]
if args.n <= q.length() {
q[.. args.n].bulk_memset!(byte_value: args.v)
} else {
n = q.length()
assert n <= q.length() via "a <= b: a == b"()
q[.. n].bulk_memset!(byte_value: args.v)
}
}
}
// dist_cache_u64 returns the C code's (size_t)dist_cache[i]: the int value,
// sign-extended to 64 bits.
pri func encoder.dist_cache_u64(i: base.u32) base.u64 {
var v : base.u32
v = this.dist_cache[args.i & 15]
if v >= 0x8000_0000 {
return (v as base.u64) | 0xFFFF_FFFF_0000_0000
}
return v as base.u64
}
// min64 returns the smaller of a and b.
pri func encoder.min64(a: base.u64, b: base.u64) base.u64 {
if args.a < args.b {
return args.a
}
return args.b
}
// max64 returns the larger of a and b.
pri func encoder.max64(a: base.u64, b: base.u64) base.u64 {
if args.a > args.b {
return args.a
}
return args.b
}