From a883161d7e075f143651240d9a5255f8db71c80d Mon Sep 17 00:00:00 2001 From: HedgehogInTheCPP Date: Mon, 17 Aug 2026 17:47:32 +0300 Subject: [PATCH] cleanup --- benchmarks/benchmark.cpp | 5 +---- include/fast_float/float_common.h | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/benchmarks/benchmark.cpp b/benchmarks/benchmark.cpp index 1808391..3af39c4 100644 --- a/benchmarks/benchmark.cpp +++ b/benchmarks/benchmark.cpp @@ -2,10 +2,7 @@ #define FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN #define FASTFLOAT_ONLY_ROUNDS_TO_NEAREST_SUPPORTED #define FASTFLOAT_ISNOT_CHECKED_BOUNDS -// #define FASTFLOAT_SSE_PATCH_REWORK // WIP, only for test! -#ifdef FASTFLOAT_SSE_PATCH_REWORK -#define FASTFLOAT_X86_SIMD 42 -#endif +#define FASTFLOAT_X86_SIMD 42 // current maximum for test. #if defined(__linux__) || (__APPLE__ && __aarch64__) #define USING_COUNTERS diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 02235af..50ecd03 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -119,10 +119,6 @@ using parse_options = parse_options_t; } // namespace fast_float -#if FASTFLOAT_HAS_BIT_CAST -#include -#endif - #if (defined(__x86_64) || defined(__x86_64__) || defined(_M_X64) || \ defined(__amd64) || defined(__aarch64__) || defined(_M_ARM64) || \ defined(__MINGW64__) || defined(__s390x__) || \ @@ -295,6 +291,10 @@ static_assert(FASTFLOAT_X86_SIMD == 20 || FASTFLOAT_X86_SIMD == 42 || FASTFLOAT_ #define FASTFLOAT_ENABLE_IF(...) \ typename std::enable_if<(__VA_ARGS__), int>::type +#if FASTFLOAT_HAS_BIT_CAST +#include +#endif + namespace fast_float { #if FASTFLOAT_HAS_BIT_CAST using std::bit_cast;