From 600f236fd8f1ee0032577840d915e1159d87eee3 Mon Sep 17 00:00:00 2001 From: IRainman Date: Thu, 25 Dec 2025 11:16:13 +0300 Subject: [PATCH] * Small optimization in code generation for auto vectorization. --- include/fast_float/float_common.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 4f48d8a..2716401 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -336,19 +336,9 @@ template struct span { } }; -struct value128 { - union { - struct { - uint64_t low; - uint64_t high; - }; -#ifdef FASTFLOAT_SSE2 - __m128i full; // trick for test only -#endif -#ifdef FASTFLOAT_NEON - uint16x8_t full; // trick for test only -#endif - }; +struct alignas(16) value128 { + uint64_t low; + uint64_t high; constexpr value128(uint64_t _low, uint64_t _high) noexcept : low(_low), high(_high) {}