Skip to content

Commit 3777273

Browse files
committed
Update simdjson and fast_float
1 parent 3040929 commit 3777273

File tree

5 files changed

+331
-41
lines changed

5 files changed

+331
-41
lines changed

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: 7.0.0-482cc1f (until Jan 17, 2025)
60+
- Version: 8.0.0
6161
- License: MIT
6262

6363
## flatbuffers
@@ -218,7 +218,7 @@
218218

219219
## simdjson
220220
- [![Upstream](https://img.shields.io/github/v/tag/simdjson/simdjson?label=Upstream)](https://github.com/simdjson/simdjson)
221-
- Version: 3.11.5
221+
- Version: 3.12.0
222222
- License: Apache-2.0
223223

224224
## stb (stb_image)

3rdparty/fast_float/decimal_to_binary.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ compute_error(int64_t q, uint64_t w) noexcept {
9393
return compute_error_scaled<binary>(q, product.high, lz);
9494
}
9595

96-
// w * 10 ** q
97-
// The returned value should be a valid ieee64 number that simply need to be
96+
// Computers w * 10 ** q.
97+
// The returned value should be a valid number that simply needs to be
9898
// packed. However, in some very rare cases, the computation will fail. In such
9999
// cases, we return an adjusted_mantissa with a negative power of 2: the caller
100100
// should recompute in such cases.
@@ -158,7 +158,8 @@ compute_float(int64_t q, uint64_t w) noexcept {
158158
// next line is safe because -answer.power2 + 1 < 64
159159
answer.mantissa >>= -answer.power2 + 1;
160160
// Thankfully, we can't have both "round-to-even" and subnormals because
161-
// "round-to-even" only occurs for powers close to 0.
161+
// "round-to-even" only occurs for powers close to 0 in the 32-bit and
162+
// and 64-bit case (with no more than 19 digits).
162163
answer.mantissa += (answer.mantissa & 1); // round up
163164
answer.mantissa >>= 1;
164165
// There is a weird scenario where we don't have a subnormal but just.

0 commit comments

Comments
 (0)