Skip to content

Commit 6c612c5

Browse files
committed
decoder: Update simdjson to 3.11.6
1 parent 8776bf8 commit 6c612c5

File tree

2 files changed

+260
-204
lines changed

2 files changed

+260
-204
lines changed

src/simdjson.cpp

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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! */
22
/* including simdjson.cpp: */
33
/* begin file simdjson.cpp */
44
#define SIMDJSON_SRC_SIMDJSON_CPP
@@ -83,9 +83,20 @@
8383
#endif
8484
#endif
8585

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+
8693
#if defined(__cpp_concepts) && !defined(SIMDJSON_CONCEPT_DISABLED)
94+
#if __cpp_concepts >= 201907L
8795
#include <utility>
8896
#define SIMDJSON_SUPPORTS_DESERIALIZATION 1
97+
#else
98+
#define SIMDJSON_SUPPORTS_DESERIALIZATION 0
99+
#endif
89100
#else // defined(__cpp_concepts) && !defined(SIMDJSON_CONCEPT_DISABLED)
90101
#define SIMDJSON_SUPPORTS_DESERIALIZATION 0
91102
#endif // defined(__cpp_concepts) && !defined(SIMDJSON_CONCEPT_DISABLED)
@@ -102,11 +113,15 @@
102113
#include <cstdlib>
103114
#include <cfloat>
104115
#include <cassert>
116+
#include <climits>
105117
#ifndef _WIN32
106118
// strcasecmp, strncasecmp
107119
#include <strings.h>
108120
#endif
109121

122+
static_assert(CHAR_BIT == 8, "simdjson requires 8-bit bytes");
123+
124+
110125
// We are using size_t without namespace std:: throughout the project
111126
using std::size_t;
112127

@@ -140,6 +155,7 @@ using std::size_t;
140155
#elif defined(__loongarch_lp64)
141156
#define SIMDJSON_IS_LOONGARCH64 1
142157
#elif defined(__PPC64__) || defined(_M_PPC64)
158+
#define SIMDJSON_IS_PPC64 1
143159
#if defined(__ALTIVEC__)
144160
#define SIMDJSON_IS_PPC64_VMX 1
145161
#endif // defined(__ALTIVEC__)
@@ -9343,7 +9359,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
93439359
// to handle that max may be a macro on windows).
93449360

93459361
// 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());
93479363
}
93489364

93499365
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) {
1571315729
// to handle that max may be a macro on windows).
1571415730

1571515731
// 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());
1571715733
}
1571815734

1571915735
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) {
2194321959
// to handle that max may be a macro on windows).
2194421960

2194521961
// 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());
2194721963
}
2194821964

2194921965
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) {
2832928345
// to handle that max may be a macro on windows).
2833028346

2833128347
// 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());
2833328349
}
2833428350

2833528351
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) {
3508135097
// to handle that max may be a macro on windows).
3508235098

3508335099
// 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());
3508535101
}
3508635102

3508735103
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) {
4165741673
// to handle that max may be a macro on windows).
4165841674

4165941675
// 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());
4166141677
}
4166241678

4166341679
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) {
4767847694
// to handle that max may be a macro on windows).
4767947695

4768047696
// 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());
4768247698
}
4768347699

4768447700
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) {
5329853314
// to handle that max may be a macro on windows).
5329953315

5330053316
// 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());
5330253318
}
5330353319

5330453320
static bool parse_float_fallback(const uint8_t *ptr, const uint8_t *end_ptr, double *outDouble) {

0 commit comments

Comments
 (0)