From fd85e523495b40040884975b214aa2367b13a74a Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 29 Dec 2025 10:47:36 -0500 Subject: [PATCH 1/3] Change branch name from 'master' to 'main' --- .github/workflows/s390x.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/s390x.yml b/.github/workflows/s390x.yml index 6bdc2be..bcce4c6 100644 --- a/.github/workflows/s390x.yml +++ b/.github/workflows/s390x.yml @@ -3,10 +3,10 @@ name: Ubuntu s390x (GCC 11) on: push: branches: - - master + - main pull_request: branches: - - master + - main jobs: build: From f4f9da1e6b2d1fe9331dbabbd0537d95e0e47184 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 29 Dec 2025 10:55:20 -0500 Subject: [PATCH 2/3] fix for issue 354 --- include/fast_float/ascii_number.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index 4e1ce3a..cac9160 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -532,6 +532,9 @@ parse_int_string(UC const *p, UC const *pend, T &value, str[j] = static_cast(p[j]); } digits = std::bit_cast(str); +#if FASTFLOAT_IS_BIG_ENDIAN + digits = byteswap(digits); +#endif } #else if (false) { @@ -539,6 +542,9 @@ parse_int_string(UC const *p, UC const *pend, T &value, #endif else if (len >= 4) { ::memcpy(&digits, p, 4); +#if FASTFLOAT_IS_BIG_ENDIAN + digits = byteswap(digits); +#endif } else { uint32_t b0 = static_cast(p[0]); uint32_t b1 = (len > 1) ? static_cast(p[1]) : 0xFFu; From 11ce67e5ebcd0e688c7e141bd1420cf40040b59f Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 29 Dec 2025 11:09:40 -0500 Subject: [PATCH 3/3] v8.2.1 --- CMakeLists.txt | 2 +- README.md | 6 +++--- include/fast_float/float_common.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1f7a4a..a220f60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.14) -project(fast_float VERSION 8.2.0 LANGUAGES CXX) +project(fast_float VERSION 8.2.1 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 be21066..71029eb 100644 --- a/README.md +++ b/README.md @@ -533,7 +533,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.0 + GIT_TAG tags/v8.2.1 GIT_SHALLOW TRUE) FetchContent_MakeAvailable(fast_float) @@ -549,7 +549,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.0) + GIT_TAG v8.2.1) ``` ## Using as single header @@ -561,7 +561,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/float_common.h b/include/fast_float/float_common.h index 62fe2bf..88efe85 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -17,7 +17,7 @@ #define FASTFLOAT_VERSION_MAJOR 8 #define FASTFLOAT_VERSION_MINOR 2 -#define FASTFLOAT_VERSION_PATCH 0 +#define FASTFLOAT_VERSION_PATCH 1 #define FASTFLOAT_STRINGIZE_IMPL(x) #x #define FASTFLOAT_STRINGIZE(x) FASTFLOAT_STRINGIZE_IMPL(x)