regression/power of two/2^14 to 2^77

About this case

Powers of two, where the gap to the next double down is half the gap up.

Source
Focused regression
Input
64 values · 512 B · raw bytes
Output
962 B
Archive
000240_must_render_exactly/input

Input

Each value is 8 bytes, little-endian. Its bits are shown most significant first, as RFC 8785 Appendix B writes them, so 3ff0000000000000 is 1.

# Bits (hex) Expected
1 40d0000000000000 16384
2 40e0000000000000 32768
3 40f0000000000000 65536
4 4100000000000000 131072
5 4110000000000000 262144
6 4120000000000000 524288
7 4130000000000000 1048576
8 4140000000000000 2097152
9 4150000000000000 4194304
10 4160000000000000 8388608
11 4170000000000000 16777216
12 4180000000000000 33554432
13 4190000000000000 67108864
14 41a0000000000000 134217728
15 41b0000000000000 268435456
16 41c0000000000000 536870912
17 41d0000000000000 1073741824
18 41e0000000000000 2147483648
19 41f0000000000000 4294967296
20 4200000000000000 8589934592
21 4210000000000000 17179869184
22 4220000000000000 34359738368
23 4230000000000000 68719476736
24 4240000000000000 137438953472
25 4250000000000000 274877906944
26 4260000000000000 549755813888
27 4270000000000000 1099511627776
28 4280000000000000 2199023255552
29 4290000000000000 4398046511104
30 42a0000000000000 8796093022208
31 42b0000000000000 17592186044416
32 42c0000000000000 35184372088832
33 42d0000000000000 70368744177664
34 42e0000000000000 140737488355328
35 42f0000000000000 281474976710656
36 4300000000000000 562949953421312
37 4310000000000000 1125899906842624
38 4320000000000000 2251799813685248
39 4330000000000000 4503599627370496
40 4340000000000000 9007199254740992
41 4350000000000000 18014398509481984
42 4360000000000000 36028797018963970
43 4370000000000000 72057594037927940
44 4380000000000000 144115188075855870
45 4390000000000000 288230376151711740
46 43a0000000000000 576460752303423500
47 43b0000000000000 1152921504606847000
48 43c0000000000000 2305843009213694000
49 43d0000000000000 4611686018427388000
50 43e0000000000000 9223372036854776000
51 43f0000000000000 18446744073709552000
52 4400000000000000 36893488147419103000
53 4410000000000000 73786976294838210000
54 4420000000000000 147573952589676410000
55 4430000000000000 295147905179352830000
56 4440000000000000 590295810358705700000
57 4450000000000000 1.1805916207174113e+21
58 4460000000000000 2.3611832414348226e+21
59 4470000000000000 4.722366482869645e+21
60 4480000000000000 9.44473296573929e+21
61 4490000000000000 1.888946593147858e+22
62 44a0000000000000 3.777893186295716e+22
63 44b0000000000000 7.555786372591432e+22
64 44c0000000000000 1.5111572745182865e+23

Expected output

The output must match these bytes exactly.

16384
32768
65536
131072
262144
524288
1048576
2097152
4194304
8388608
16777216
33554432
67108864
134217728
268435456
536870912
1073741824
2147483648
4294967296
8589934592
17179869184
34359738368
68719476736
137438953472
274877906944
549755813888
1099511627776
2199023255552
4398046511104
8796093022208
17592186044416
35184372088832
70368744177664
140737488355328
281474976710656
562949953421312
1125899906842624
2251799813685248
4503599627370496
9007199254740992
18014398509481984
36028797018963970
72057594037927940
144115188075855870
288230376151711740
576460752303423500
1152921504606847000
2305843009213694000
4611686018427388000
9223372036854776000
18446744073709552000
36893488147419103000
73786976294838210000
147573952589676410000
295147905179352830000
590295810358705700000
1.1805916207174113e+21
2.3611832414348226e+21
4.722366482869645e+21
9.44473296573929e+21
1.888946593147858e+22
3.777893186295716e+22
7.555786372591432e+22
1.5111572745182865e+23