mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
# Disable FASTFLOAT_HAS_BYTESWAP: step to try to fix precision error on x86 platform
This commit is contained in:
parent
56d423399d
commit
62b60e0040
@ -29,11 +29,12 @@
|
|||||||
#define FASTFLOAT_CONSTEVAL FASTFLOAT_CONSTEXPR14
|
#define FASTFLOAT_CONSTEVAL FASTFLOAT_CONSTEXPR14
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__cpp_lib_byteswap)
|
// Try to fix precision error in x86 platform
|
||||||
#define FASTFLOAT_HAS_BYTESWAP 1
|
//#if defined(__cpp_lib_byteswap)
|
||||||
#else
|
//#define FASTFLOAT_HAS_BYTESWAP 1
|
||||||
|
//#else
|
||||||
#define FASTFLOAT_HAS_BYTESWAP 0
|
#define FASTFLOAT_HAS_BYTESWAP 0
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
#if defined(__cpp_if_constexpr) && __cpp_if_constexpr >= 201606L
|
#if defined(__cpp_if_constexpr) && __cpp_if_constexpr >= 201606L
|
||||||
#define FASTFLOAT_IF_CONSTEXPR17(x) if constexpr (x)
|
#define FASTFLOAT_IF_CONSTEXPR17(x) if constexpr (x)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user