OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // ------------ GENERATED FILE ---------------- | 2 // ------------ GENERATED FILE ---------------- |
3 // command used: | 3 // command used: |
4 // tools/generate-ten-powers --from -308 --to 342 --mantissa-size 64 --round ro
und -o src/powers_ten.h // NOLINT | 4 // tools/generate-ten-powers --from -308 --to 342 --mantissa-size 64 --round ro
und -o src/powers-ten.h // NOLINT |
5 | 5 |
6 // This file is intended to be included inside another .h or .cc files | 6 // This file is intended to be included inside another .h or .cc files |
7 // with the following defines set: | 7 // with the following defines set: |
8 // GRISU_CACHE_STRUCT: should expand to the name of a struct that will | 8 // GRISU_CACHE_STRUCT: should expand to the name of a struct that will |
9 // hold the cached powers of ten. Each entry will hold a 64-bit | 9 // hold the cached powers of ten. Each entry will hold a 64-bit |
10 // significand, a 16-bit signed binary exponent, and a 16-bit | 10 // significand, a 16-bit signed binary exponent, and a 16-bit |
11 // signed decimal exponent. Each entry will be constructed as follows: | 11 // signed decimal exponent. Each entry will be constructed as follows: |
12 // { significand, binary_exponent, decimal_exponent }. | 12 // { significand, binary_exponent, decimal_exponent }. |
13 // GRISU_CACHE_NAME(i): generates the name for the different caches. | 13 // GRISU_CACHE_NAME(i): generates the name for the different caches. |
14 // The parameter i will be a number in the range 1-20. A cache will | 14 // The parameter i will be a number in the range 1-20. A cache will |
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2452 {GRISU_UINT64_C(0xce1de406, 42e3f4b9), 707, 232}, | 2452 {GRISU_UINT64_C(0xce1de406, 42e3f4b9), 707, 232}, |
2453 {GRISU_UINT64_C(0x8bab8eef, b6409c1a), 774, 252}, | 2453 {GRISU_UINT64_C(0x8bab8eef, b6409c1a), 774, 252}, |
2454 {GRISU_UINT64_C(0xbd49d14a, a79dbc82), 840, 272}, | 2454 {GRISU_UINT64_C(0xbd49d14a, a79dbc82), 840, 272}, |
2455 {GRISU_UINT64_C(0x80444b5e, 7aa7cf85), 907, 292}, | 2455 {GRISU_UINT64_C(0x80444b5e, 7aa7cf85), 907, 292}, |
2456 {GRISU_UINT64_C(0xadd57a27, d29339f6), 973, 312}, | 2456 {GRISU_UINT64_C(0xadd57a27, d29339f6), 973, 312}, |
2457 {GRISU_UINT64_C(0xeb96bf6e, badf77d9), 1039, 332}, | 2457 {GRISU_UINT64_C(0xeb96bf6e, badf77d9), 1039, 332}, |
2458 }; | 2458 }; |
2459 static const int GRISU_CACHE_MAX_DISTANCE(20) = 67; | 2459 static const int GRISU_CACHE_MAX_DISTANCE(20) = 67; |
2460 // nb elements (20): 33 | 2460 // nb elements (20): 33 |
2461 static const int GRISU_CACHE_OFFSET = 308; | 2461 static const int GRISU_CACHE_OFFSET = 308; |
OLD | NEW |