From 62b60e0040c25d4055ac3502d8fcba094dfc5e71 Mon Sep 17 00:00:00 2001 From: IRainman Date: Sat, 8 Nov 2025 18:29:14 +0300 Subject: [PATCH] # Disable FASTFLOAT_HAS_BYTESWAP: step to try to fix precision error on x86 platform --- include/fast_float/constexpr_feature_detect.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/fast_float/constexpr_feature_detect.h b/include/fast_float/constexpr_feature_detect.h index 8d409df..6999538 100644 --- a/include/fast_float/constexpr_feature_detect.h +++ b/include/fast_float/constexpr_feature_detect.h @@ -29,11 +29,12 @@ #define FASTFLOAT_CONSTEVAL FASTFLOAT_CONSTEXPR14 #endif -#if defined(__cpp_lib_byteswap) -#define FASTFLOAT_HAS_BYTESWAP 1 -#else +// Try to fix precision error in x86 platform +//#if defined(__cpp_lib_byteswap) +//#define FASTFLOAT_HAS_BYTESWAP 1 +//#else #define FASTFLOAT_HAS_BYTESWAP 0 -#endif +//#endif #if defined(__cpp_if_constexpr) && __cpp_if_constexpr >= 201606L #define FASTFLOAT_IF_CONSTEXPR17(x) if constexpr (x)