Skip to content

Commit f92d7fb

Browse files
committed
2 parents 7ca9c84 + 11ce67e commit f92d7fb

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

.github/workflows/s390x.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Ubuntu s390x (GCC 11)
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
branches:
9-
- master
9+
- main
1010

1111
jobs:
1212
build:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.14)
22

33

4-
project(fast_float VERSION 8.2.0 LANGUAGES CXX)
4+
project(fast_float VERSION 8.2.1 LANGUAGES CXX)
55
set(FASTFLOAT_CXX_STANDARD 11 CACHE STRING "the C++ standard to use for fastfloat")
66
set(CMAKE_CXX_STANDARD ${FASTFLOAT_CXX_STANDARD})
77
option(FASTFLOAT_TEST "Enable tests" OFF)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ sufficiently recent version of CMake (3.11 or better at least):
569569
FetchContent_Declare(
570570
fast_float
571571
GIT_REPOSITORY https://github.com/fastfloat/fast_float.git
572-
GIT_TAG tags/v8.2.0
572+
GIT_TAG tags/v8.2.1
573573
GIT_SHALLOW TRUE)
574574
575575
FetchContent_MakeAvailable(fast_float)
@@ -585,7 +585,7 @@ You may also use [CPM](https://github.com/cpm-cmake/CPM.cmake), like so:
585585
CPMAddPackage(
586586
NAME fast_float
587587
GITHUB_REPOSITORY "fastfloat/fast_float"
588-
GIT_TAG v8.2.0)
588+
GIT_TAG v8.2.1)
589589
```
590590

591591
## Using as single header
@@ -597,7 +597,7 @@ if desired as described in the command line help.
597597

598598
You may directly download automatically generated single-header files:
599599

600-
<https://github.com/fastfloat/fast_float/releases/download/v8.2.0/fast_float.h>
600+
<https://github.com/fastfloat/fast_float/releases/download/v8.2.1/fast_float.h>
601601

602602
## Benchmarking
603603

include/fast_float/ascii_number.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,13 +586,19 @@ parse_int_string(UC const *p, UC const *pend, T &value,
586586
str[j] = static_cast<uint8_t>(p[j]);
587587
}
588588
digits = bit_cast<uint32_t>(str);
589+
#if FASTFLOAT_IS_BIG_ENDIAN
590+
digits = byteswap(digits);
591+
#endif
589592
}
590593
#else
591594
if (false) {
592595
}
593596
#endif
594597
else if (len >= 4) {
595598
std::memcpy(&digits, p, 4);
599+
#if FASTFLOAT_IS_BIG_ENDIAN
600+
digits = byteswap(digits);
601+
#endif
596602
} else {
597603
uint32_t b0 = static_cast<uint8_t>(p[0]);
598604
uint32_t b1 = (len > 1) ? static_cast<uint8_t>(p[1]) : 0xFFu;

include/fast_float/float_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#define FASTFLOAT_VERSION_MAJOR 8
1919
#define FASTFLOAT_VERSION_MINOR 2
20-
#define FASTFLOAT_VERSION_PATCH 0
20+
#define FASTFLOAT_VERSION_PATCH 1
2121

2222
#define FASTFLOAT_STRINGIZE_IMPL(x) #x
2323
#define FASTFLOAT_STRINGIZE(x) FASTFLOAT_STRINGIZE_IMPL(x)

0 commit comments

Comments
 (0)