From 8234a896236a6c98ee66cf214b31ca15e24579ca Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 11 Jun 2026 20:29:24 -0400 Subject: [PATCH] 8.2.9 --- CMakeLists.txt | 2 +- README.md | 6 +++--- include/fast_float/ascii_number.h | 8 ++++---- include/fast_float/float_common.h | 2 +- tests/fast_int.cpp | 6 +----- 5 files changed, 10 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f3f36f..1e20b5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.14) -project(fast_float VERSION 8.2.8 LANGUAGES CXX) +project(fast_float VERSION 8.2.9 LANGUAGES CXX) set(FASTFLOAT_CXX_STANDARD 11 CACHE STRING "the C++ standard to use for fastfloat") set(CMAKE_CXX_STANDARD ${FASTFLOAT_CXX_STANDARD}) option(FASTFLOAT_TEST "Enable tests" OFF) diff --git a/README.md b/README.md index 6523888..30b50b4 100644 --- a/README.md +++ b/README.md @@ -531,7 +531,7 @@ sufficiently recent version of CMake (3.11 or better at least): FetchContent_Declare( fast_float GIT_REPOSITORY https://github.com/fastfloat/fast_float.git - GIT_TAG tags/v8.2.8 + GIT_TAG tags/v8.2.9 GIT_SHALLOW TRUE) FetchContent_MakeAvailable(fast_float) @@ -547,7 +547,7 @@ You may also use [CPM](https://github.com/cpm-cmake/CPM.cmake), like so: CPMAddPackage( NAME fast_float GITHUB_REPOSITORY "fastfloat/fast_float" - GIT_TAG v8.2.8) + GIT_TAG v8.2.9) ``` ## Using as single header @@ -559,7 +559,7 @@ if desired as described in the command line help. You may directly download automatically generated single-header files: - + ## Benchmarking diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index d748204..b54c10b 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -600,8 +600,8 @@ parse_int_string(UC const *p, UC const *pend, T &value, UC const *const start_digits = p; - FASTFLOAT_IF_CONSTEXPR17((std::is_same::value && - sizeof(UC) == 1)) { + FASTFLOAT_IF_CONSTEXPR17( + (std::is_same::value && sizeof(UC) == 1)) { if (base == 10) { const size_t len = (size_t)(pend - p); if (len == 0) { @@ -693,8 +693,8 @@ parse_int_string(UC const *p, UC const *pend, T &value, } } - FASTFLOAT_IF_CONSTEXPR17((std::is_same::value && - sizeof(UC) == 1)) { + FASTFLOAT_IF_CONSTEXPR17( + (std::is_same::value && sizeof(UC) == 1)) { if (base == 10) { const size_t len = size_t(pend - p); if (len == 0) { diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 04b4a1c..66f04ac 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -18,7 +18,7 @@ #define FASTFLOAT_VERSION_MAJOR 8 #define FASTFLOAT_VERSION_MINOR 2 -#define FASTFLOAT_VERSION_PATCH 8 +#define FASTFLOAT_VERSION_PATCH 9 #define FASTFLOAT_STRINGIZE_IMPL(x) #x #define FASTFLOAT_STRINGIZE(x) FASTFLOAT_STRINGIZE_IMPL(x) diff --git a/tests/fast_int.cpp b/tests/fast_int.cpp index f7ec934..0a78faa 100644 --- a/tests/fast_int.cpp +++ b/tests/fast_int.cpp @@ -1302,11 +1302,7 @@ int main() { // the uint8_t path and the 4-digit uint16_t SWAR path. { const std::u16string bad16[] = { - u"ℹ", - u"ℱℲ", - u"ℱℲℳ", - u"ℱℲℳℴ", - u"ℱℲℳℴℵ", + u"ℹ", u"ℱℲ", u"ℱℲℳ", u"ℱℲℳℴ", u"ℱℲℳℴℵ", }; const std::u32string bad32[] = { U"ℹ",