Skip to content

Commit ec4d352

Browse files
committed
Update fast_float, simdjson
- fast_float: 8.2.5 - simdjson: 4.6.2
1 parent 7504feb commit ec4d352

7 files changed

Lines changed: 1822 additions & 960 deletions

File tree

3rdparty/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
## fast_float
5959
- [![Upstream](https://img.shields.io/github/v/release/fastfloat/fast_float?label=Upstream)](https://github.com/fastfloat/fast_float)
60-
- Version: 8.2.4
60+
- Version: 8.2.5
6161
- License: MIT
6262

6363
## flatbuffers
@@ -234,7 +234,7 @@
234234

235235
## simdjson
236236
- [![Upstream](https://img.shields.io/github/v/tag/simdjson/simdjson?label=Upstream)](https://github.com/simdjson/simdjson)
237-
- Version: 4.6.1
237+
- Version: 4.6.2
238238
- License: Apache-2.0
239239

240240
## stb (stb_image)

3rdparty/fast_float/ascii_number.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
594594
((digits + 0x46464646u) | (digits - 0x30303030u)) & 0x80808080u;
595595
uint32_t tz = (uint32_t)countr_zero_32(magic); // 7, 15, 23, 31, or 32
596596
uint32_t nd = (tz == 32) ? 4 : (tz >> 3);
597-
nd = (uint32_t)std::min((size_t)nd, len);
597+
nd = (uint32_t)(nd < len ? nd : len);
598598
if (nd == 0) {
599599
if (has_leading_zeros) {
600600
value = 0;

3rdparty/fast_float/digit_comparison.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef FASTFLOAT_DIGIT_COMPARISON_H
22
#define FASTFLOAT_DIGIT_COMPARISON_H
33

4-
#include <algorithm>
54
#include <cstdint>
65
#include <cstring>
76
#include <iterator>
@@ -109,7 +108,7 @@ fastfloat_really_inline FASTFLOAT_CONSTEXPR14 void round(adjusted_mantissa &am,
109108
if (-am.power2 >= mantissa_shift) {
110109
// have a denormal float
111110
int32_t shift = -am.power2 + 1;
112-
cb(am, std::min<int32_t>(shift, 64));
111+
cb(am, (shift < 64 ? shift : 64));
113112
// check for round-up: if rounding-nearest carried us to the hidden bit.
114113
am.power2 = (am.mantissa <
115114
(uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))

3rdparty/fast_float/float_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#define FASTFLOAT_VERSION_MAJOR 8
2020
#define FASTFLOAT_VERSION_MINOR 2
21-
#define FASTFLOAT_VERSION_PATCH 4
21+
#define FASTFLOAT_VERSION_PATCH 5
2222

2323
#define FASTFLOAT_STRINGIZE_IMPL(x) #x
2424
#define FASTFLOAT_STRINGIZE(x) FASTFLOAT_STRINGIZE_IMPL(x)
@@ -398,7 +398,7 @@ fastfloat_strncasecmp(UC const *actual_mixedcase, UC const *expected_lowercase,
398398
size_t sz{8 / (sizeof(UC))};
399399
for (size_t i = 0; i < length; i += sz) {
400400
val1 = val2 = 0;
401-
sz = std::min(sz, length - i);
401+
sz = sz < (length - i) ? sz : length - i;
402402
::memcpy(&val1, actual_mixedcase + i, sz * sizeof(UC));
403403
::memcpy(&val2, expected_lowercase + i, sz * sizeof(UC));
404404
val1 |= mask;

3rdparty/fast_float/parse_number.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ template <> struct from_chars_caller<std::float32_t> {
155155
// if std::float32_t is defined, and we are in C++23 mode; macro set for
156156
// float32; set value to float due to equivalence between float and
157157
// float32_t
158-
float val;
158+
float val = 0.0f;
159159
auto ret = from_chars_advanced(first, last, val, options);
160160
value = val;
161161
return ret;
@@ -172,7 +172,7 @@ template <> struct from_chars_caller<std::float64_t> {
172172
// if std::float64_t is defined, and we are in C++23 mode; macro set for
173173
// float64; set value as double due to equivalence between double and
174174
// float64_t
175-
double val;
175+
double val = 0.0;
176176
auto ret = from_chars_advanced(first, last, val, options);
177177
value = val;
178178
return ret;
@@ -456,8 +456,7 @@ template <size_t TypeIx> struct from_chars_advanced_caller {
456456

457457
template <> struct from_chars_advanced_caller<1> {
458458
template <typename T, typename UC>
459-
fastfloat_really_inline
460-
FASTFLOAT_CONSTEXPR20 static from_chars_result_t<UC>
459+
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 static from_chars_result_t<UC>
461460
call(UC const *first, UC const *last, T &value,
462461
parse_options_t<UC> options) noexcept {
463462
return from_chars_float_advanced(first, last, value, options);

3rdparty/simdjson/simdjson.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on 2026-04-03 15:25:03 -0400. version 4.6.1 Do not edit! */
1+
/* auto-generated on 2026-04-17 11:03:09 -0400. version 4.6.2 Do not edit! */
22
/* including simdjson.cpp: */
33
/* begin file simdjson.cpp */
44
#define SIMDJSON_SRC_SIMDJSON_CPP

0 commit comments

Comments
 (0)