From 051d15119ed9c89aab946102f063197104f92587 Mon Sep 17 00:00:00 2001 From: IRainman Date: Mon, 29 Dec 2025 23:57:28 +0300 Subject: [PATCH] small performance improvement after full cleanup. --- include/fast_float/ascii_number.h | 2 +- include/fast_float/bigint.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index 286b7d4..3c97c6a 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -582,7 +582,7 @@ parse_int_string(UC const *p, UC const *pend, T &value, #if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED && FASTFLOAT_HAS_BIT_CAST if (std::is_constant_evaluated()) { uint8_t str[4]; - for (uint_fast8_t j = 0; j < 4 && j < len; ++j) { + for (uint_fast8_t j = 0; j != 4 && j != len; ++j) { str[j] = static_cast(p[j]); } digits = bit_cast(str); diff --git a/include/fast_float/bigint.h b/include/fast_float/bigint.h index b089292..a25c201 100644 --- a/include/fast_float/bigint.h +++ b/include/fast_float/bigint.h @@ -518,7 +518,7 @@ struct bigint : pow5_tables<> { limb_t const shl = n; limb_t const shr = limb_bits - shl; limb prev = 0; - for (limb_t index = 0; index < vec.len(); ++index) { + for (limb_t index = 0; index != vec.len(); ++index) { limb xi = vec[index]; vec[index] = (xi << shl) | (prev >> shr); prev = xi;