mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
deps: update simdjson to 4.2.4
PR-URL: https://github.com/nodejs/node/pull/61056 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
committed by
GitHub
parent
607a741941
commit
b8db64c18d
16
deps/simdjson/simdjson.cpp
vendored
16
deps/simdjson/simdjson.cpp
vendored
@@ -1,4 +1,4 @@
|
||||
/* auto-generated on 2025-11-11 14:17:08 -0500. version 4.2.2 Do not edit! */
|
||||
/* auto-generated on 2025-12-17 20:32:36 -0500. version 4.2.4 Do not edit! */
|
||||
/* including simdjson.cpp: */
|
||||
/* begin file simdjson.cpp */
|
||||
#define SIMDJSON_SRC_SIMDJSON_CPP
|
||||
@@ -4047,20 +4047,14 @@ void grisu2(char *buf, int &len, int &decimal_exponent, FloatType value) {
|
||||
*/
|
||||
inline char *append_exponent(char *buf, int e) {
|
||||
|
||||
if (e < 0) {
|
||||
e = -e;
|
||||
*buf++ = '-';
|
||||
} else {
|
||||
*buf++ = '+';
|
||||
}
|
||||
bool isNegative = e < 0;
|
||||
e = isNegative ? -e : e;
|
||||
*buf++ = isNegative ? '-' : '+';
|
||||
|
||||
auto k = static_cast<std::uint32_t>(e);
|
||||
if (k < 10) {
|
||||
if (k < 100) {
|
||||
// Always print at least two digits in the exponent.
|
||||
// This is for compatibility with printf("%g").
|
||||
*buf++ = '0';
|
||||
*buf++ = static_cast<char>('0' + k);
|
||||
} else if (k < 100) {
|
||||
*buf++ = static_cast<char>('0' + k / 10);
|
||||
k %= 10;
|
||||
*buf++ = static_cast<char>('0' + k);
|
||||
|
||||
357
deps/simdjson/simdjson.h
vendored
357
deps/simdjson/simdjson.h
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user