mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
Merge branch 'main' of github.com:fastfloat/fast_float
This commit is contained in:
commit
1504792a9f
2
.github/workflows/s390x.yml
vendored
2
.github/workflows/s390x.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: uraimo/run-on-arch-action@v2
|
||||
- uses: uraimo/run-on-arch-action@v3
|
||||
name: Test
|
||||
id: runcmd
|
||||
with:
|
||||
|
||||
26
.github/workflows/ubuntu24.yml
vendored
26
.github/workflows/ubuntu24.yml
vendored
@ -9,15 +9,21 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use cmake
|
||||
run: |
|
||||
mkdir build &&
|
||||
cd build &&
|
||||
CXXFLAGS=-Werror cmake -DFASTFLOAT_TEST=ON -D FASTFLOAT_BENCHMARKS=ON .. &&
|
||||
cmake --build . &&
|
||||
ctest --output-on-failure
|
||||
set -xe
|
||||
cmake -B build \
|
||||
-DFASTFLOAT_TEST=ON \
|
||||
-DFASTFLOAT_BENCHMARKS=ON \
|
||||
-DCMAKE_CXX_FLAGS=' -Werror -Wundef '
|
||||
cmake --build build --parallel
|
||||
( cd build ; ctest --output-on-failure )
|
||||
- name: Use cmake CXX23
|
||||
run: |
|
||||
mkdir build20 &&
|
||||
cd build20 &&
|
||||
CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_FIXEDWIDTH_TESTS=ON -DFASTFLOAT_CXX_STANDARD=23 -DFASTFLOAT_TEST=ON .. &&
|
||||
cmake --build . &&
|
||||
ctest --output-on-failure
|
||||
set -xe
|
||||
cmake -B build20 \
|
||||
-DFASTFLOAT_TEST=ON \
|
||||
-DFASTFLOAT_CONSTEXPR_TESTS=ON \
|
||||
-DFASTFLOAT_FIXEDWIDTH_TESTS=ON \
|
||||
-DFASTFLOAT_CXX_STANDARD=23 \
|
||||
-DCMAKE_CXX_FLAGS=' -Werror -Wundef '
|
||||
cmake --build build20 --parallel
|
||||
( cd build20 ; ctest --output-on-failure )
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
#if __APPLE__ && __aarch64__
|
||||
#if (defined(__APPLE__) && __APPLE__) && (defined(__aarch64__) && __aarch64__)
|
||||
#include "apple_arm_events.h"
|
||||
#endif
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
#endif
|
||||
|
||||
// Testing for https://wg21.link/N3652, adopted in C++14
|
||||
#if __cpp_constexpr >= 201304
|
||||
#if defined(__cpp_constexpr) && __cpp_constexpr >= 201304
|
||||
#define FASTFLOAT_CONSTEXPR14 constexpr
|
||||
#else
|
||||
#define FASTFLOAT_CONSTEXPR14
|
||||
@ -29,6 +29,7 @@
|
||||
|
||||
// Testing for relevant C++20 constexpr library features
|
||||
#if FASTFLOAT_HAS_IS_CONSTANT_EVALUATED && FASTFLOAT_HAS_BIT_CAST && \
|
||||
defined(__cpp_lib_constexpr_algorithms) && \
|
||||
__cpp_lib_constexpr_algorithms >= 201806L /*For std::copy and std::fill*/
|
||||
#define FASTFLOAT_CONSTEXPR20 constexpr
|
||||
#define FASTFLOAT_IS_CONSTEXPR 1
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#include <type_traits>
|
||||
#include <system_error>
|
||||
#ifdef __has_include
|
||||
#if __has_include(<stdfloat>) && (__cplusplus > 202002L || _MSVC_LANG > 202002L)
|
||||
#if __has_include(<stdfloat>) && (__cplusplus > 202002L || (defined(_MSVC_LANG) && (_MSVC_LANG > 202002L)))
|
||||
#include <stdfloat>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user