This commit is contained in:
IRainman 2025-12-29 23:43:27 +03:00
commit f92d7fb594
5 changed files with 13 additions and 7 deletions

View File

@ -3,10 +3,10 @@ name: Ubuntu s390x (GCC 11)
on:
push:
branches:
- master
- main
pull_request:
branches:
- master
- main
jobs:
build:

View File

@ -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)

View File

@ -569,7 +569,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)
@ -585,7 +585,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
@ -597,7 +597,7 @@ if desired as described in the command line help.
You may directly download automatically generated single-header files:
<https://github.com/fastfloat/fast_float/releases/download/v8.2.0/fast_float.h>
<https://github.com/fastfloat/fast_float/releases/download/v8.2.1/fast_float.h>
## Benchmarking

View File

@ -586,6 +586,9 @@ parse_int_string(UC const *p, UC const *pend, T &value,
str[j] = static_cast<uint8_t>(p[j]);
}
digits = bit_cast<uint32_t>(str);
#if FASTFLOAT_IS_BIG_ENDIAN
digits = byteswap(digits);
#endif
}
#else
if (false) {
@ -593,6 +596,9 @@ parse_int_string(UC const *p, UC const *pend, T &value,
#endif
else if (len >= 4) {
std::memcpy(&digits, p, 4);
#if FASTFLOAT_IS_BIG_ENDIAN
digits = byteswap(digits);
#endif
} else {
uint32_t b0 = static_cast<uint8_t>(p[0]);
uint32_t b1 = (len > 1) ? static_cast<uint8_t>(p[1]) : 0xFFu;

View File

@ -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)