This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuncs_2k.h
550 lines (532 loc) · 38.5 KB
/
funcs_2k.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
#ifndef FUNCS_2K_H
#define FUNCS_2K_H
/*
==========================================================================
Common file for milk-mode and standalone 2k interface
Using ImageStreamIO is allowed (common),
but not processinfo (milk version only)
==========================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include <string.h>
#include "bmc_mdlib.h" // BMC dm
#include <ImageStruct.h> // cacao data structure definition
#include <ImageStreamIO.h> // function ImageStreamIO_read_sharedmem_image_toIMAGE()
#define SHOW(x) \
{ \
(void)printf x; \
(void)fflush(stdout); \
}
#define ERR(x) \
{ \
SHOW(("ERR: ")); \
SHOW(x); \
}
#define iMode 4096
#define kBIGDATA 4096
#define kSMALLDATA 2048
tBMC sBMC; // Must not be static, must not be defined. Defined in run_2k.c:main and in...
static tU16 size_2k = 4096;
static tU16 minlut_2k = 0;
// Structure to pass up/down with the main loop functions / both for milk and standalone
typedef struct
{
} DM_2K_STRUCT;
static int sNdx = 0; // board index
static short sActValue[iMode]; // buffer for 4k actuator values
/*
** Make sure the BMC SDK has been opened
*/
errno_t make_open();
/*
** configure for HVA type = 7 (closest match ?)
*/
errno_t init_hva();
/*
** Set the driver delay
*/
errno_t set_spin_delay(int delay);
/* ================================================
** Please don't add useful code down below
** Look-up tables to support 2k DM
*/
static tU16 lut_2k[] = {
3891, 3103, 314, 3774, 3129, 1053, 2361, 309, 2972, 1854, 1341, 3515,
3742, 443, 1592, 1467, 56, 3355, 409, 1945, 824, 1308, 1948, 3729,
1950, 3609, 2079, 3896, 2705, 1810, 2067, 3771, 697, 1593, 3096, 3866,
816, 3890, 2869, 2971, 2746, 2068, 1818, 539, 1342, 1951, 2323, 315,
1296, 1822, 786, 2745, 788, 1978, 1980, 1982, 2586, 3348, 1594, 1304,
698, 2456, 3097, 3346, 2969, 3770, 305, 2744, 1177, 2225, 313, 1331,
3775, 828, 3128, 1808, 2365, 953, 2747, 2707, 3091, 3219, 2576, 1211,
1432, 573, 447, 1842, 3608, 3767, 186, 2584, 3225, 2333, 817, 2075,
2227, 3505, 2363, 29, 3641, 1333, 1054, 2617, 829, 3514, 3473, 1977,
1812, 1302, 1821, 571, 1599, 3217, 2109, 1085, 273, 2202, 3632, 3089,
1210, 282, 1840, 1720, 1080, 954, 2463, 3995, 1811, 1848, 412, 1563,
30, 1813, 272, 1310, 2491, 2833, 2322, 2579, 3643, 569, 1721, 703,
3098, 61, 17, 2751, 2073, 3734, 2330, 959, 188, 2449, 3601, 2226,
1307, 3354, 1328, 2866, 3381, 2970, 2618, 3739, 923, 3989, 1335, 1438,
286, 1849, 784, 2065, 3735, 3513, 3728, 1468, 1470, 575, 3603, 2836,
1727, 3860, 152, 1597, 1725, 3094, 3625, 809, 1332, 820, 275, 1722,
2835, 1469, 285, 792, 2331, 3737, 3642, 1329, 3512, 2196, 3900, 2489,
311, 3135, 1850, 3000, 2455, 1855, 952, 2619, 3482, 3994, 408, 2577,
1595, 3738, 701, 3857, 2749, 3261, 2588, 536, 1833, 3841, 2435, 1297,
2834, 60, 308, 2321, 818, 957, 1309, 3224, 3865, 1841, 3743, 3633,
2232, 3389, 414, 2875, 1338, 3485, 2616, 319, 4027, 3985, 1466, 3088,
790, 2324, 699, 3516, 1823, 2621, 1213, 145, 410, 2367, 3007, 922,
2345, 3883, 2446, 2051, 2859, 3760, 2961, 1981, 3347, 306, 445, 1208,
696, 3357, 3481, 1433, 3386, 796, 2197, 2461, 279, 3858, 798, 2490,
2462, 2194, 2200, 185, 1209, 59, 1215, 3731, 189, 1944, 3133, 664,
3773, 3647, 2076, 657, 2689, 2696, 2219, 1321, 2817, 3969, 787, 283,
2354, 280, 1306, 3893, 3378, 2481, 2201, 3258, 1558, 284, 27, 2364,
1439, 1303, 3768, 3349, 2193, 3095, 3385, 3600, 956, 958, 191, 920,
3216, 2237, 3856, 24, 2879, 2750, 3231, 1176, 2239, 3390, 3119, 3340,
3726, 2985, 297, 3201, 2056, 3371, 299, 1299, 1082, 2968, 2842, 2457,
2329, 442, 307, 3384, 665, 2494, 3769, 821, 1337, 830, 317, 3861,
2233, 1465, 3259, 3480, 2074, 2714, 799, 1723, 3610, 1048, 1435, 3645,
2110, 1555, 1169, 4030, 2622, 2204, 2473, 3885, 2049, 2309, 2861, 2218,
3329, 1287, 3753, 3736, 1330, 570, 2328, 287, 3864, 3121, 3869, 2993,
2104, 2495, 1436, 3899, 316, 3484, 3257, 1853, 4026, 3102, 955, 2960,
2448, 1814, 1083, 2111, 2454, 1560, 4031, 3262, 1688, 1947, 3903, 4028,
2591, 154, 3113, 2479, 1799, 2063, 3373, 2346, 2316, 775, 2347, 3759,
2177, 1294, 3127, 58, 1979, 568, 2845, 3483, 1305, 312, 1946, 1687,
1052, 791, 2837, 1815, 3003, 3868, 795, 2840, 57, 1081, 187, 1087,
3902, 2878, 1681, 26, 3132, 2238, 21, 147, 2620, 3518, 413, 666,
2858, 1832, 2061, 270, 808, 1834, 2304, 1679, 3882, 810, 2561, 2944,
2195, 2487, 304, 3761, 2459, 3130, 3227, 411, 2711, 2357, 926, 2460,
3640, 1809, 3356, 1817, 2107, 1819, 446, 2492, 3004, 3226, 3644, 3006,
2077, 925, 3260, 2366, 538, 659, 2748, 3646, 1694, 1050, 1315, 3468,
1797, 3370, 298, 3981, 1039, 1320, 300, 1550, 263, 296, 1322, 2189,
3469, 1816, 794, 184, 2867, 2106, 1686, 2865, 2877, 1843, 825, 1852,
1851, 793, 2105, 1464, 3131, 3352, 3992, 3772, 1073, 1178, 1437, 563,
1585, 1047, 1171, 1075, 561, 1690, 1562, 51, 2871, 1175, 2957, 1292,
289, 803, 1038, 2444, 2211, 2337, 1167, 3584, 2977, 293, 1551, 526,
3617, 2585, 1311, 2355, 281, 2353, 2099, 2874, 1301, 3001, 1340, 1566,
3256, 1343, 441, 2072, 444, 797, 2320, 1949, 3125, 2231, 156, 1683,
3637, 3511, 1567, 28, 3253, 2999, 668, 415, 3765, 2359, 2471, 14,
773, 801, 1825, 655, 1935, 3875, 3877, 527, 1285, 3363, 291, 2956,
143, 1313, 1827, 2203, 2841, 921, 1336, 789, 1051, 1564, 1820, 785,
2325, 3002, 3345, 1300, 2712, 1182, 149, 3895, 3639, 158, 540, 4022,
2742, 670, 1180, 3894, 3382, 543, 1692, 4023, 2102, 1055, 2306, 3745,
3874, 1677, 1036, 3105, 1824, 15, 1422, 2339, 800, 1934, 2178, 2853,
3365, 2445, 1549, 2851, 2458, 1976, 2715, 277, 1561, 2876, 541, 542,
1339, 3867, 2844, 276, 4025, 278, 927, 3254, 2614, 1685, 1565, 3764,
4020, 151, 31, 3252, 2998, 1557, 661, 2358, 3638, 663, 1173, 3124,
525, 2338, 3744, 653, 524, 1314, 292, 911, 268, 2850, 288, 1037,
910, 3362, 1312, 1423, 1165, 2465, 290, 1548, 4024, 153, 3134, 3901,
819, 2362, 2360, 2488, 1298, 2873, 2870, 23, 533, 3636, 3510, 535,
1045, 2230, 2741, 2451, 2450, 3255, 3383, 2064, 2713, 2740, 2612, 2962,
2192, 2229, 1547, 1325, 813, 1675, 1546, 2472, 2344, 1933, 1932, 802,
294, 13, 141, 1316, 804, 12, 399, 3751, 1826, 398, 3379, 2872,
3898, 924, 2235, 318, 3997, 3897, 831, 440, 2615, 3353, 2963, 2743,
2228, 2832, 2704, 2100, 1719, 3475, 3474, 4021, 2103, 3344, 3993, 1718,
1590, 3986, 3472, 1207, 3880, 396, 523, 1327, 815, 651, 522, 3240,
3241, 909, 908, 1837, 2340, 1035, 1163, 2601, 303, 1034, 1421, 1318,
2600, 1420, 1434, 2583, 2069, 2973, 2843, 2332, 3509, 2587, 3987, 3508,
1206, 2066, 3984, 1078, 695, 401, 400, 2997, 2996, 2578, 3099, 694,
566, 912, 2706, 183, 2485, 3611, 1419, 3750, 2986, 1418, 1545, 2217,
2089, 1673, 1544, 2474, 2475, 1931, 1930, 1839, 2470, 11, 139, 3881,
2349, 10, 397, 3364, 2071, 3388, 1559, 3859, 827, 274, 913, 2484,
182, 3218, 3090, 54, 1717, 1425, 1424, 1975, 1974, 3602, 25, 1716,
1588, 1936, 3730, 1205, 1463, 537, 1937, 1462, 9, 4011, 2091, 136,
394, 2720, 4010, 395, 649, 3497, 3369, 521, 648, 3498, 3499, 906,
907, 2729, 2080, 1161, 1033, 2987, 2857, 1032, 1845, 2234, 1204, 144,
16, 1076, 693, 403, 402, 951, 950, 528, 1049, 692, 564, 914,
656, 181, 439, 1689, 915, 438, 180, 1168, 1040, 52, 905, 3115,
2594, 3211, 3083, 937, 3243, 3210, 1416, 4000, 936, 1417, 3723, 2731,
2603, 3595, 3722, 424, 425, 1928, 1929, 4009, 3360, 137, 3387, 826,
1715, 1427, 1426, 1973, 1972, 1552, 155, 1714, 1586, 1938, 1680, 1203,
1461, 667, 1939, 1460, 1202, 146, 18, 1074, 691, 405, 404, 949,
904, 1449, 1448, 2698, 2571, 3627, 3755, 2699, 393, 1960, 3106, 392,
2058, 169, 1961, 3977, 2059, 3618, 41, 3979, 3978, 427, 426, 3464,
2692, 1031, 1712, 157, 1554, 1970, 1971, 1428, 1429, 1713, 50, 1042,
1170, 178, 436, 917, 1691, 437, 179, 658, 916, 562, 690, 1179,
530, 948, 3337, 553, 681, 3465, 3467, 938, 32, 3466, 2824, 1193,
939, 2697, 2825, 544, 1065, 2955, 2954, 1450, 1451, 2184, 2057, 1705,
1577, 2185, 1543, 2950, 177, 660, 918, 560, 688, 1181, 532, 946,
947, 406, 407, 689, 1072, 20, 148, 1200, 1458, 1941, 669, 1459,
1201, 1682, 1940, 1584, 2443, 1963, 1056, 2442, 3086, 43, 1962, 1807,
2317, 1568, 171, 3849, 3848, 428, 429, 3852, 783, 683, 555, 1295,
3209, 941, 551, 3460, 2593, 1324, 3846, 418, 671, 1457, 3763, 1684,
1942, 3634, 3762, 159, 1556, 1968, 1969, 1430, 1431, 49, 48, 1044,
1172, 176, 434, 919, 1693, 435, 34, 3208, 2828, 1067, 940, 1805,
271, 546, 1195, 2569, 2568, 1452, 1453, 1806, 781, 1707, 1579, 1293,
2312, 1965, 1058, 2440, 2351, 2976, 2862, 302, 928, 2984, 432, 2965,
1695, 433, 3251, 662, 2964, 2610, 2738, 1183, 534, 944, 945, 2452,
2453, 3635, 3122, 22, 150, 3250, 1456, 1943, 782, 45, 1964, 1803,
269, 1570, 173, 2952, 3080, 430, 431, 1804, 779, 685, 557, 1291,
3592, 943, 36, 3720, 516, 903, 1158, 2214, 3335, 2188, 3752, 1029,
2183, 643, 3506, 3101, 3871, 3507, 2739, 2589, 2717, 3376, 3504, 2205,
3613, 4018, 4019, 3476, 3477, 3123, 4016, 1046, 1174, 2098, 780, 1069,
942, 1801, 267, 548, 1197, 2186, 2314, 1454, 1455, 1802, 2827, 3758,
2348, 2313, 3851, 2088, 3372, 3593, 1412, 167, 2437, 2052, 2053, 3590,
7, 3591, 1059, 3, 3377, 2335, 2078, 2096, 2483, 2847, 3487, 2994,
2224, 2975, 3615, 2613, 2995, 3229, 3741, 2611, 2736, 2719, 3359, 2864,
777, 3118, 1838, 2953, 3339, 2216, 2478, 2187, 1289, 3876, 2860, 2441,
265, 3110, 3884, 3721, 2829, 2979, 684, 389, 1580, 3757, 1198, 1671,
1703, 3361, 3206, 2092, 1696, 932, 3470, 2982, 3486, 3126, 3249, 3870,
3230, 3263, 3888, 3998, 2590, 2482, 3892, 2207, 3996, 4017, 3766, 3358,
2718, 3391, 1830, 3081, 3087, 3489, 2852, 3341, 3853, 2083, 2209, 2315,
2447, 2595, 2849, 2826, 3727, 2856, 2341, 2221, 549, 3245, 6, 3620,
807, 2081, 2848, 1571, 160, 133, 1186, 3748, 1447, 2716, 2334, 2486,
2608, 3740, 3614, 1587, 2868, 3100, 2846, 3889, 3380, 3612, 2206, 2108,
2737, 3999, 776, 1800, 3491, 2728, 3850, 778, 2723, 806, 3338, 266,
3496, 3368, 1288, 1290, 4003, 1706, 172, 130, 2733, 644, 902, 3461,
2222, 3207, 3212, 2722, 1157, 2823, 1674, 676, 1672, 3237, 3749, 1041,
2097, 822, 1043, 1553, 2623, 2356, 19, 529, 3248, 1847, 3228, 2974,
2101, 2609, 814, 264, 2305, 3107, 4008, 2179, 261, 2090, 1326, 2945,
1283, 417, 2602, 3585, 259, 3501, 1062, 898, 1538, 1925, 39, 2436,
2180, 2565, 3588, 135, 3974, 1442, 1537, 1923, 3980, 166, 2980, 2352,
310, 3093, 2839, 53, 823, 2581, 2199, 1846, 2992, 3605, 3479, 2236,
2480, 531, 3235, 1319, 3331, 1795, 2730, 3619, 1281, 771, 929, 1828,
257, 1793, 687, 3202, 128, 1152, 165, 388, 1701, 3108, 1070, 1159,
1582, 4001, 2566, 1952, 301, 3236, 3724, 3238, 387, 1, 3594, 4005,
4029, 3005, 3221, 2967, 1334, 3517, 2709, 2327, 1591, 1844, 3733, 3607,
3114, 1441, 2819, 3079, 3242, 295, 769, 3845, 3747, 3754, 3843, 3333,
2562, 2438, 2946, 896, 1574, 1189, 2596, 134, 3628, 2464, 3232, 2978,
416, 3624, 1164, 674, 3878, 1446, 2062, 3471, 3084, 3082, 1079, 702,
3863, 2710, 1598, 567, 3223, 3350, 3120, 1086, 3990, 2070, 3626, 3616,
3073, 3719, 1953, 40, 2821, 2439, 33, 170, 3456, 2308, 675, 1187,
1699, 514, 2084, 1028, 1415, 1542, 3246, 3076, 2700, 1836, 142, 3463,
1155, 422, 1153, 3494, 4004, 3623, 2319, 2570, 547, 2582, 1726, 1596,
3351, 3222, 1214, 574, 3862, 3988, 1829, 2307, 768, 168, 1317, 2433,
770, 419, 161, 175, 2432, 933, 1071, 3500, 4013, 386, 1666, 1924,
686, 2949, 2695, 3077, 2182, 1166, 3334, 2597, 1025, 650, 3596, 1959,
678, 3492, 3109, 3597, 2599, 2708, 2326, 565, 2493, 3732, 3606, 1077,
55, 3991, 3842, 1792, 552, 2210, 3713, 1280, 1060, 1955, 2816, 42,
38, 3586, 512, 1536, 677, 901, 1573, 3116, 1191, 2693, 37, 3233,
3972, 2213, 1184, 420, 2318, 3366, 1160, 1921, 3715, 2087, 3630, 3075,
1569, 3367, 1084, 190, 3220, 2966, 700, 62, 680, 805, 2818, 1282,
673, 3078, 1966, 1286, 2476, 2690, 2820, 2434, 384, 2607, 1068, 2604,
518, 3886, 2336, 1710, 2467, 3490, 3746, 517, 1835, 3879, 1188, 3854,
3599, 2831, 3587, 2855, 3215, 2724, 3336, 2198, 1212, 1589, 3604, 3478,
931, 256, 258, 1581, 1709, 3712, 2176, 1697, 3968, 3332, 1445, 1957,
423, 642, 3247, 1156, 1414, 1670, 3374, 3204, 2060, 812, 1541, 3717,
140, 164, 1411, 2598, 2726, 2343, 2191, 3203, 3502, 3459, 2575, 2990,
3239, 1471, 1983, 2580, 1192, 3111, 3844, 3718, 1185, 1796, 1572, 774,
554, 1199, 1583, 2095, 1922, 4, 391, 558, 2948, 2567, 1539, 2822,
519, 2694, 930, 513, 131, 2190, 1958, 2469, 1190, 3495, 3855, 35,
3085, 2094, 2947, 2563, 3092, 2838, 1443, 1284, 1794, 1967, 1576, 3328,
682, 2989, 3714, 640, 1664, 556, 900, 174, 4015, 1063, 2181, 2220,
2721, 3716, 1440, 1323, 2732, 2958, 4006, 641, 520, 1409, 1702, 3621,
3971, 4012, 3756, 2703, 2573, 2350, 1064, 1704, 2048, 47, 3072, 559,
3074, 3840, 3970, 1920, 2735, 1708, 3887, 646, 4014, 1831, 1575, 2466,
3488, 3112, 645, 162, 1698, 935, 3214, 3342, 3982, 897, 2212, 3725,
1057, 2691, 3244, 3631, 772, 2688, 421, 2050, 2560, 1066, 1578, 44,
1026, 3375, 1540, 1927, 2055, 2991, 3975, 5, 2082, 1669, 2311, 1667,
1956, 138, 3622, 3503, 2086, 3983, 385, 2215, 3976, 3213, 262, 2477,
1798, 1194, 550, 1711, 2093, 1410, 132, 390, 679, 647, 2564, 1027,
3462, 1678, 2054, 2725, 3589, 1162, 2830, 1700, 2468, 2981, 2983, 2572,
2727, 3343, 163, 2988, 0, 1024, 2, 1196, 1413, 46, 2223, 3104,
3205, 3872, 2734, 2310, 2085, 672, 1954, 3598, 2342, 899, 129, 8,
3493, 545, 3200, 3458, 1408, 2605, 1061, 3629, 1030, 2863, 2592, 2606,
3873, 2208, 3234, 1676, 811, 4007, 934, 2574, 2702, 2959, 1154, 3117,
1668, 1926, 3973, 2854, 3847, 515, 4002, 654, 2951, 652, 1444, 1665,
1243, 1115, 988, 731, 603, 476, 477, 90, 219, 91, 2010, 2011,
1624, 1753, 1625, 1498, 1499, 1112, 1113, 1241, 987, 986, 728, 601,
729, 475, 474, 216, 89, 217, 2009, 2008, 3802, 3675, 3803, 1497,
1496, 3290, 3163, 3291, 985, 984, 2778, 2651, 2779, 473, 472, 2138,
4057, 2139, 4059, 4058, 3544, 3417, 3545, 3547, 3546, 2904, 2777, 2905,
3035, 3034, 2264, 2137, 2265, 2523, 2522, 3166, 1887, 2397, 3929, 3928,
3932, 863, 1375, 3289, 3288, 2908, 1885, 351, 2649, 2648, 1886, 861,
1373, 2392, 2520, 862, 1883, 349, 3032, 3160, 1884, 859, 1371, 3672,
3800, 860, 1881, 347, 2266, 2394, 1882, 857, 1369, 3167, 3807, 858,
3931, 345, 3933, 2527, 1880, 2907, 3673, 2393, 3419, 2267, 3033, 2909,
3801, 2521, 3421, 2395, 3161, 856, 3930, 2906, 1480, 3274, 3147, 3275,
969, 968, 2762, 2635, 2763, 457, 456, 2122, 4041, 2123, 4043, 4042,
3528, 3401, 3529, 3531, 3530, 2888, 2761, 2889, 3019, 3018, 2248, 2121,
2249, 2507, 1871, 2506, 3150, 2381, 3912, 847, 3273, 2892, 335, 2632,
845, 2376, 846, 333, 3144, 843, 3656, 844, 331, 2378, 841, 3151,
2377, 3657, 3017, 2251, 2505, 3785, 3145, 2379, 2890, 3914, 3402, 328,
2243, 3649, 3395, 321, 2883, 3907, 3137, 2371, 2497, 3777, 2882, 3394,
2503, 1856, 1859, 3783, 1346, 2242, 1858, 1861, 3776, 1348, 3008, 1860,
1863, 2496, 1350, 2625, 1862, 2753, 3264, 3396, 3393, 3904, 3905, 3908,
2502, 4033, 2499, 2498, 3142, 3782, 2627, 3011, 3010, 2240, 2112, 2755,
3523, 3522, 2880, 2752, 3139, 4035, 4034, 3520, 3392, 3267, 449, 448,
2114, 4032, 3651, 961, 2626, 2754, 960, 3138, 3266, 1472, 1473, 3779,
3650, 3778, 1984, 1985, 65, 64, 192, 450, 451, 193, 576, 704,
962, 963, 705, 1088, 1216, 1474, 1475, 1217, 1600, 1728, 1986, 1987,
1729, 66, 194, 452, 453, 195, 578, 706, 964, 965, 707, 1090,
1218, 1476, 1477, 1219, 1602, 1730, 1988, 1989, 1731, 68, 196, 454,
455, 197, 580, 708, 966, 967, 709, 1092, 1220, 1478, 1479, 1221,
1604, 1732, 1990, 1991, 1733, 70, 198, 2500, 2501, 199, 582, 710,
3012, 3013, 711, 1094, 1222, 3524, 3525, 1223, 1606, 1734, 2119, 4037,
1735, 2116, 2244, 2759, 2631, 2245, 2628, 2756, 3399, 3271, 2757, 3140,
3268, 4039, 3911, 3269, 3652, 3780, 3910, 4038, 3781, 2246, 2886, 3526,
2374, 3014, 3654, 3270, 2630, 4036, 3398, 2758, 2118, 2375, 3015, 3655,
469, 211, 594, 722, 980, 981, 723, 1106, 1234, 1492, 1493, 1235,
1618, 1746, 2004, 2005, 1747, 84, 212, 470, 471, 213, 596, 724,
982, 983, 725, 1108, 1236, 1494, 1620, 1495, 1237, 1748, 2007, 86,
2516, 215, 726, 3029, 1110, 3540, 1239, 1750, 4053, 2132, 2775, 2261,
2772, 3287, 3156, 4055, 3542, 2902, 3670, 3030, 4052, 2646, 2134, 2774,
3671, 3031, 3543, 2903, 593, 1105, 3678, 3038, 3550, 2910, 4060, 2654,
2142, 2782, 3679, 3551, 4063, 2271, 2780, 3935, 3805, 3295, 3165, 2268,
2783, 2781, 4061, 2141, 1118, 3548, 1759, 3037, 1119, 94, 2524, 735,
1628, 2014, 2015, 95, 223, 1116, 1503, 1502, 1629, 1757, 604, 991,
990, 1117, 1245, 92, 479, 478, 605, 733, 1626, 2013, 2012, 93,
221, 1114, 1501, 1500, 1627, 1755, 602, 989, 732, 220, 1754, 1242,
730, 218, 1752, 1490, 1232, 1104, 1240, 721, 979, 978, 600, 209,
467, 466, 88, 81, 2001, 2000, 3674, 3795, 1489, 1488, 3162, 3667,
977, 976, 2650, 3283, 465, 464, 4056, 3155, 4051, 4050, 3416, 2771,
3539, 3538, 2776, 2643, 3027, 3026, 2136, 2131, 4049, 2515, 2514, 3806,
3537, 3409, 3921, 3920, 2526, 2897, 2769, 3281, 3280, 3420, 2257, 2129,
2641, 2640, 2396, 2389, 1879, 2384, 2512, 1374, 1367, 855, 3024, 3152,
350, 343, 1877, 3664, 3792, 1372, 1365, 853, 2258, 2386, 348, 341,
1875, 3159, 3799, 1370, 1363, 851, 3925, 2519, 346, 2385, 339, 1873,
3413, 1368, 3025, 1361, 849, 2901, 344, 3665, 337, 3923, 2387, 3418,
2259, 3411, 2899, 850, 3153, 1872, 848, 3793, 2513, 3922, 1362, 336,
3410, 2898, 1360, 338, 3277, 3149, 2765, 2637, 2253, 2125, 1743, 1615,
1231, 1103, 719, 207, 591, 79, 1741, 1613, 1229, 1101, 717, 589,
205, 77, 1739, 1611, 1227, 1099, 715, 587, 203, 75, 1737, 1609,
1097, 1225, 3913, 3916, 1359, 3272, 1869, 2633, 1870, 1357, 2504, 1867,
3016, 1868, 1355, 3784, 1865, 2250, 1866, 1353, 3791, 2891, 3915, 3403,
329, 2893, 3917, 3405, 2511, 840, 1864, 1352, 330, 3009, 2369, 1345,
323, 833, 1857, 2885, 3397, 3906, 832, 320, 1344, 322, 3143, 834,
837, 2370, 324, 3648, 836, 839, 3136, 326, 2368, 838, 2113, 2624,
2372, 3265, 2884, 3909, 1354, 842, 1347, 835, 332, 325, 1356, 1349,
3659, 334, 327, 73, 1358, 1351, 3787, 2380, 2373, 201, 3404, 2241,
2510, 1481, 2881, 1993, 3790, 3521, 1992, 2115, 2120, 3786, 200, 458,
2760, 3400, 4040, 2634, 3146, 3658, 72, 459, 713, 585, 584, 712,
970, 971, 1224, 1096, 1483, 1482, 1736, 1608, 1995, 1994, 202, 74,
461, 460, 714, 586, 973, 972, 1226, 1098, 1485, 1484, 1738, 1610,
1997, 1996, 204, 76, 463, 462, 716, 588, 975, 974, 581, 1228,
1100, 1487, 1486, 1093, 1740, 1612, 1999, 1998, 1605, 206, 78, 2509,
2508, 71, 718, 590, 3021, 3020, 583, 1230, 1102, 3533, 3532, 1095,
1742, 1614, 4045, 2127, 1607, 69, 2252, 2639, 2767, 2117, 1603, 2124,
3279, 3407, 2629, 1091, 2764, 2636, 3919, 3141, 579, 3276, 3148, 4047,
3653, 67, 3788, 3660, 3918, 2247, 1601, 2382, 2254, 3278, 2887, 1089,
3022, 2894, 2638, 3527, 577, 3662, 3534, 3661, 4044, 2255, 4046, 2766,
2126, 3406, 3789, 3023, 3535, 3663, 2895, 2383, 340, 1874, 1364, 852,
342, 1876, 1366, 854, 2388, 1878, 3412, 2518, 2900, 3924, 3798, 3158,
2128, 2256, 2768, 2896, 3408, 3536, 4048, 2130, 2642, 2770, 3154, 3282,
3666, 3794, 80, 208, 592, 720, 2006, 1749, 214, 2517, 598, 3028,
727, 1238, 3541, 1622, 2135, 1751, 2260, 2647, 2644, 3415, 2773, 3284,
3927, 2262, 3668, 2390, 3796, 3286, 3926, 3414, 4054, 2391, 3797, 2263,
3669, 1617, 83, 2398, 3804, 2270, 3676, 3294, 3934, 3422, 4062, 3039,
2911, 2399, 2652, 3677, 2140, 3423, 3293, 2655, 2653, 1630, 2143, 2269,
3549, 1631, 606, 3036, 1247, 2525, 607, 3164, 3157, 3285, 595, 3292,
2645, 1107, 2133, 1619, 82, 1623, 85, 1616, 1111, 1758, 210, 599,
1246, 1744, 87, 734, 1621, 468, 222, 2002, 1109, 1756, 2003, 1244,
597, 1745, 1233, 1491, 3330, 3457, 2701, 260, 3519, 1724, 572, 63,
3558, 614, 102, 1636, 1124, 612, 100, 1634, 1122, 610, 98, 2918,
1632, 1120, 608, 96, 3682, 3170, 2658, 4064, 3424, 2784, 2278, 2144,
3814, 2534, 3428, 2404, 1382, 358, 1380, 356, 1378, 3684, 354, 1376,
352, 3426, 2914, 3172, 2660, 2148, 1638, 1126, 3686, 742, 230, 1764,
1252, 740, 228, 1762, 1250, 738, 226, 3046, 1760, 1248, 736, 224,
3810, 3298, 2786, 2146, 3552, 2912, 2406, 2272, 3174, 3940, 2916, 1894,
870, 1892, 868, 1890, 866, 3812, 1888, 864, 3938, 3809, 2529, 3300,
2788, 2276, 1766, 1254, 4068, 3044, 2532, 2022, 1510, 998, 486, 2020,
1508, 996, 484, 2662, 2018, 1506, 994, 482, 2016, 1504, 992, 480,
4066, 3554, 3302, 3042, 2530, 3936, 3296, 2656, 2528, 3168, 3808, 2402,
3815, 3942, 2535, 3429, 2917, 2403, 3169, 4071, 3431, 2791, 2151, 3556,
2150, 3045, 2533, 2023, 1511, 999, 487, 2021, 1509, 997, 485, 2790,
2019, 1507, 995, 483, 2017, 1505, 993, 481, 4067, 3555, 3430, 3043,
2531, 3937, 3297, 2657, 2400, 3040, 3680, 2274, 3175, 4070, 3941, 1889,
865, 3939, 2915, 3943, 3303, 2663, 4069, 3557, 3687, 743, 231, 1765,
1253, 741, 229, 1763, 1251, 739, 227, 3047, 1761, 1249, 737, 225,
97, 3811, 3683, 3299, 3171, 2787, 2407, 2659, 4065, 3425, 2785, 2145,
1895, 871, 1893, 869, 1891, 3813, 867, 355, 1377, 353, 3427, 3301,
2789, 2277, 1767, 1255, 3559, 615, 103, 1637, 1125, 613, 2919, 2279,
2147, 3553, 2913, 2273, 2405, 1383, 359, 1381, 357, 3685, 1379, 2401,
3041, 3681, 2275, 3173, 2661, 2149, 1639, 1127, 609, 1262, 750, 238,
1772, 1260, 748, 236, 1770, 1258, 746, 1121, 234, 1768, 1256, 616,
104, 3690, 3178, 2666, 4072, 3432, 1633, 2792, 2152, 3822, 2542, 3436,
2412, 1390, 366, 1388, 364, 99, 1386, 362, 1384, 360, 3434, 611,
1123, 1635, 101, 1774, 3694, 1134, 622, 110, 1644, 1132, 620, 108,
1642, 1130, 618, 3054, 106, 1640, 1128, 744, 232, 3818, 3306, 2794,
2154, 3560, 2414, 2920, 2280, 3182, 3948, 2924, 1902, 878, 1900, 876,
1898, 3820, 874, 1896, 872, 3946, 2922, 3308, 2796, 2156, 2284, 1646,
3566, 3565, 3053, 2541, 2031, 1519, 1007, 495, 2029, 1517, 1005, 2926,
493, 2027, 1515, 1002, 490, 2024, 1512, 1000, 488, 4074, 2286, 3562,
3050, 2538, 3944, 3304, 2664, 2536, 3176, 3816, 2410, 3692, 3823, 2543,
3437, 2411, 3177, 3180, 2668, 3311, 2671, 4077, 4076, 3564, 3052, 2540,
2030, 1518, 1006, 494, 2028, 1516, 1004, 2670, 492, 2026, 1514, 1003,
491, 2025, 1513, 1001, 489, 4075, 3310, 3563, 3051, 2539, 3945, 3305,
2665, 2408, 3048, 3688, 2282, 3950, 3183, 3949, 2925, 3817, 2537, 4079,
3951, 3439, 2799, 2159, 2158, 1647, 1135, 623, 111, 1645, 1133, 621,
109, 1643, 1131, 2798, 619, 107, 1641, 1257, 745, 233, 3819, 3307,
2795, 2155, 3438, 3561, 2921, 2281, 2413, 1391, 367, 1389, 365, 1387,
363, 4078, 1385, 361, 3435, 2283, 3049, 2287, 3693, 3181, 2669, 2157,
3695, 1775, 1263, 751, 239, 1773, 1261, 749, 237, 1771, 1259, 3567,
747, 235, 1769, 1129, 617, 105, 3691, 3179, 2667, 4073, 3055, 3433,
2793, 2153, 1903, 879, 1901, 877, 1899, 875, 1897, 2927, 873, 3947,
2923, 3689, 2409, 2415, 3821, 3309, 2797, 2285, 3574, 630, 118, 1652,
1140, 628, 116, 1650, 1138, 626, 114, 2934, 1648, 1136, 624, 112,
3698, 3186, 2674, 4080, 3440, 2800, 2294, 2160, 3830, 2550, 3444, 2420,
1398, 374, 1396, 372, 1394, 3700, 370, 1392, 368, 3442, 2930, 3188,
2676, 2164, 1654, 1142, 3702, 758, 246, 1780, 1268, 756, 244, 1778,
1266, 754, 242, 3062, 1776, 1264, 752, 240, 3826, 3314, 2802, 2162,
3568, 2928, 2422, 2288, 3190, 3956, 2932, 1910, 886, 1908, 884, 1906,
882, 3828, 1904, 880, 3954, 3825, 2545, 3316, 2804, 2292, 1782, 1270,
4084, 3060, 2548, 2038, 1526, 1014, 502, 2036, 1524, 1012, 500, 2678,
2034, 1522, 1010, 498, 2032, 1520, 1008, 496, 4082, 3570, 3318, 3058,
2546, 3952, 3312, 2672, 2544, 3184, 3824, 2418, 3831, 3958, 2551, 3445,
2933, 2419, 3185, 4087, 3447, 2807, 2167, 3572, 2166, 3061, 2549, 2039,
1527, 1015, 503, 2037, 1525, 1013, 501, 2806, 2035, 1523, 1011, 499,
2033, 1521, 1009, 497, 4083, 3571, 3446, 3059, 2547, 3953, 3313, 2673,
2416, 3056, 3696, 2290, 3191, 4086, 3957, 1905, 881, 3955, 2931, 3959,
3319, 2679, 4085, 3573, 3703, 759, 247, 1781, 1269, 757, 245, 1779,
1267, 755, 243, 3063, 1777, 1265, 753, 241, 113, 3827, 3699, 3315,
3187, 2803, 2423, 2675, 4081, 3441, 2801, 2161, 1911, 887, 1909, 885,
1907, 3829, 883, 371, 1393, 369, 3443, 3317, 2805, 2293, 1783, 1271,
3575, 631, 119, 1653, 1141, 629, 2935, 2295, 2163, 3569, 2929, 2289,
2421, 1399, 375, 1397, 373, 3701, 1395, 2417, 3057, 3697, 2291, 3189,
2677, 2165, 1655, 1143, 625, 1278, 766, 254, 1788, 1276, 764, 252,
1786, 1274, 762, 1137, 250, 1784, 1272, 632, 120, 3706, 3194, 2682,
4088, 3448, 1649, 2808, 2168, 3838, 2558, 3452, 2428, 1406, 382, 1404,
380, 115, 1402, 378, 1400, 376, 3450, 627, 1139, 1651, 117, 1790,
3710, 1150, 638, 126, 1660, 1148, 636, 124, 1658, 1146, 634, 3070,
122, 1656, 1144, 760, 248, 3834, 3322, 2810, 2170, 3576, 2430, 2936,
2296, 3198, 3964, 2940, 1918, 894, 1916, 892, 1914, 3836, 890, 1912,
888, 3962, 2938, 3324, 2812, 2172, 2300, 1662, 3582, 3581, 3069, 2557,
2047, 1535, 1023, 511, 2045, 1533, 1021, 2942, 509, 2043, 1531, 1018,
506, 2040, 1528, 1016, 504, 4090, 2302, 3578, 3066, 2554, 3960, 3320,
2680, 2552, 3192, 3832, 2426, 3708, 3839, 2559, 3453, 2427, 3193, 3196,
2684, 3327, 2687, 4093, 4092, 3580, 3068, 2556, 2046, 1534, 1022, 510,
2044, 1532, 1020, 2686, 508, 2042, 1530, 1019, 507, 2041, 1529, 1017,
505, 4091, 3326, 3579, 3067, 2555, 3961, 3321, 2681, 2424, 3064, 3704,
2298, 3966, 3199, 3965, 2941, 3833, 2553, 4095, 3967, 3455, 2815, 2175,
2174, 1663, 1151, 639, 127, 1661, 1149, 637, 125, 1659, 1147, 2814,
635, 123, 1657, 1273, 761, 249, 3835, 3323, 2811, 2171, 3454, 3577,
2937, 2297, 2429, 1407, 383, 1405, 381, 1403, 379, 4094, 1401, 377,
3451, 2299, 3065, 2303, 3709, 3197, 2685, 2173, 3711, 1791, 1279, 767,
255, 1789, 1277, 765, 253, 1787, 1275, 3583, 763, 251, 1785, 1145,
633, 121, 3707, 3195, 2683, 4089, 3071, 3449, 2809, 2169, 1919, 895,
1917, 893, 1915, 891, 1913, 2943, 889, 3963, 2939, 3705, 2425, 2431,
3837, 3325, 2813, 2301,
kBMCmarkLUT};
static tU8 amap_2k[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 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