|
1 |
| -/* auto-generated on 2024-12-12 13:38:22 -0500. Do not edit! */ |
| 1 | +/* auto-generated on 2025-01-16 13:33:53 -0500. Do not edit! */ |
2 | 2 | /* including simdjson.cpp: */
|
3 | 3 | /* begin file simdjson.cpp */
|
4 | 4 | #define SIMDJSON_SRC_SIMDJSON_CPP
|
|
83 | 83 | #endif
|
84 | 84 | #endif
|
85 | 85 |
|
| 86 | +#if defined(__apple_build_version__) |
| 87 | +#if __apple_build_version__ < 14000000 |
| 88 | +#define SIMDJSON_CONCEPT_DISABLED 1 // apple-clang/13 doesn't support std::convertible_to |
| 89 | +#endif |
| 90 | +#endif |
| 91 | + |
| 92 | + |
86 | 93 | #if defined(__cpp_concepts) && !defined(SIMDJSON_CONCEPT_DISABLED)
|
| 94 | +#if __cpp_concepts >= 201907L |
87 | 95 | #include <utility>
|
88 | 96 | #define SIMDJSON_SUPPORTS_DESERIALIZATION 1
|
| 97 | +#else |
| 98 | +#define SIMDJSON_SUPPORTS_DESERIALIZATION 0 |
| 99 | +#endif |
89 | 100 | #else // defined(__cpp_concepts) && !defined(SIMDJSON_CONCEPT_DISABLED)
|
90 | 101 | #define SIMDJSON_SUPPORTS_DESERIALIZATION 0
|
91 | 102 | #endif // defined(__cpp_concepts) && !defined(SIMDJSON_CONCEPT_DISABLED)
|
|
102 | 113 | #include <cstdlib>
|
103 | 114 | #include <cfloat>
|
104 | 115 | #include <cassert>
|
| 116 | +#include <climits> |
105 | 117 | #ifndef _WIN32
|
106 | 118 | // strcasecmp, strncasecmp
|
107 | 119 | #include <strings.h>
|
108 | 120 | #endif
|
109 | 121 |
|
| 122 | +static_assert(CHAR_BIT == 8, "simdjson requires 8-bit bytes"); |
| 123 | + |
| 124 | + |
110 | 125 | // We are using size_t without namespace std:: throughout the project
|
111 | 126 | using std::size_t;
|
112 | 127 |
|
@@ -140,6 +155,7 @@ using std::size_t;
|
140 | 155 | #elif defined(__loongarch_lp64)
|
141 | 156 | #define SIMDJSON_IS_LOONGARCH64 1
|
142 | 157 | #elif defined(__PPC64__) || defined(_M_PPC64)
|
| 158 | +#define SIMDJSON_IS_PPC64 1 |
143 | 159 | #if defined(__ALTIVEC__)
|
144 | 160 | #define SIMDJSON_IS_PPC64_VMX 1
|
145 | 161 | #endif // defined(__ALTIVEC__)
|
@@ -9343,7 +9359,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
9343 | 9359 | // to handle that max may be a macro on windows).
|
9344 | 9360 |
|
9345 | 9361 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
9346 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 9362 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
9347 | 9363 | }
|
9348 | 9364 |
|
9349 | 9365 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
@@ -15713,7 +15729,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
15713 | 15729 | // to handle that max may be a macro on windows).
|
15714 | 15730 |
|
15715 | 15731 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
15716 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 15732 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
15717 | 15733 | }
|
15718 | 15734 |
|
15719 | 15735 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
@@ -21943,7 +21959,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
21943 | 21959 | // to handle that max may be a macro on windows).
|
21944 | 21960 |
|
21945 | 21961 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
21946 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 21962 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
21947 | 21963 | }
|
21948 | 21964 |
|
21949 | 21965 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
@@ -28329,7 +28345,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
28329 | 28345 | // to handle that max may be a macro on windows).
|
28330 | 28346 |
|
28331 | 28347 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
28332 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 28348 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
28333 | 28349 | }
|
28334 | 28350 |
|
28335 | 28351 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
@@ -35081,7 +35097,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
35081 | 35097 | // to handle that max may be a macro on windows).
|
35082 | 35098 |
|
35083 | 35099 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
35084 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 35100 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
35085 | 35101 | }
|
35086 | 35102 |
|
35087 | 35103 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
@@ -41657,7 +41673,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
41657 | 41673 | // to handle that max may be a macro on windows).
|
41658 | 41674 |
|
41659 | 41675 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
41660 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 41676 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
41661 | 41677 | }
|
41662 | 41678 |
|
41663 | 41679 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
@@ -47678,7 +47694,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
47678 | 47694 | // to handle that max may be a macro on windows).
|
47679 | 47695 |
|
47680 | 47696 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
47681 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 47697 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
47682 | 47698 | }
|
47683 | 47699 |
|
47684 | 47700 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
@@ -53298,7 +53314,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
|
53298 | 53314 | // to handle that max may be a macro on windows).
|
53299 | 53315 |
|
53300 | 53316 | // SIMDJSON_PHP patch imitating PHP json_decode() to accept infinite values
|
53301 |
| - return true; //return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
| 53317 | + return true; // return !(*outDouble > (std::numeric_limits<double>::max)() || *outDouble < std::numeric_limits<double>::lowest()); |
53302 | 53318 | }
|
53303 | 53319 |
|
53304 | 53320 | static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {
|
|
0 commit comments