simdjson  3.11.0
Ridiculously Fast JSON
numberparsing_tables.h
1 #ifndef SIMDJSON_INTERNAL_NUMBERPARSING_TABLES_H
2 #define SIMDJSON_INTERNAL_NUMBERPARSING_TABLES_H
3 
4 #include "simdjson/base.h"
5 
6 namespace simdjson {
7 namespace internal {
21 constexpr int smallest_power = -342;
22 constexpr int largest_power = 308;
23 
29 struct value128 {
30  uint64_t low;
31  uint64_t high;
32 };
33 
34 
35 // Precomputed powers of ten from 10^0 to 10^22. These
36 // can be represented exactly using the double type.
37 extern SIMDJSON_DLLIMPORTEXPORT const double power_of_ten[];
38 
39 
52 // The truncated powers of five from 5^-342 all the way to 5^308
53 // The mantissa is truncated to 128 bits, and
54 // never rounded up. Uses about 10KB.
55 extern SIMDJSON_DLLIMPORTEXPORT const uint64_t power_of_five_128[];
56 } // namespace internal
57 } // namespace simdjson
58 
59 #endif // SIMDJSON_INTERNAL_NUMBERPARSING_TABLES_H
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8