Skip to content

Commit 600f236

Browse files
committed
* Small optimization in code generation for auto vectorization.
1 parent f42c880 commit 600f236

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

include/fast_float/float_common.h

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -336,19 +336,9 @@ template <typename T> struct span {
336336
}
337337
};
338338

339-
struct value128 {
340-
union {
341-
struct {
342-
uint64_t low;
343-
uint64_t high;
344-
};
345-
#ifdef FASTFLOAT_SSE2
346-
__m128i full; // trick for test only
347-
#endif
348-
#ifdef FASTFLOAT_NEON
349-
uint16x8_t full; // trick for test only
350-
#endif
351-
};
339+
struct alignas(16) value128 {
340+
uint64_t low;
341+
uint64_t high;
352342

353343
constexpr value128(uint64_t _low, uint64_t _high) noexcept
354344
: low(_low), high(_high) {}

0 commit comments

Comments
 (0)