Skip to content

Commit b8db64c

Browse files
deps: update simdjson to 4.2.4
PR-URL: #61056 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
1 parent 607a741 commit b8db64c

File tree

2 files changed

+226
-147
lines changed

2 files changed

+226
-147
lines changed

deps/simdjson/simdjson.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2025-11-11 14:17:08 -0500. version 4.2.2 Do not edit! */
1+
/* auto-generated on 2025-12-17 20:32:36 -0500. version 4.2.4 Do not edit! */
22
/* including simdjson.cpp: */
33
/* begin file simdjson.cpp */
44
#define SIMDJSON_SRC_SIMDJSON_CPP
@@ -4047,20 +4047,14 @@ void grisu2(char *buf, int &len, int &decimal_exponent, FloatType value) {
40474047
*/
40484048
inline char *append_exponent(char *buf, int e) {
40494049

4050-
if (e < 0) {
4051-
e = -e;
4052-
*buf++ = '-';
4053-
} else {
4054-
*buf++ = '+';
4055-
}
4050+
bool isNegative = e < 0;
4051+
e = isNegative ? -e : e;
4052+
*buf++ = isNegative ? '-' : '+';
40564053

40574054
auto k = static_cast<std::uint32_t>(e);
4058-
if (k < 10) {
4055+
if (k < 100) {
40594056
// Always print at least two digits in the exponent.
40604057
// This is for compatibility with printf("%g").
4061-
*buf++ = '0';
4062-
*buf++ = static_cast<char>('0' + k);
4063-
} else if (k < 100) {
40644058
*buf++ = static_cast<char>('0' + k / 10);
40654059
k %= 10;
40664060
*buf++ = static_cast<char>('0' + k);

0 commit comments

Comments
 (0)