mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-12 13:19:54 +08:00
* Small optimization in code generation for auto vectorization.
This commit is contained in:
parent
f42c8802af
commit
600f236fd8
@ -336,19 +336,9 @@ template <typename T> struct span {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct value128 {
|
struct alignas(16) value128 {
|
||||||
union {
|
uint64_t low;
|
||||||
struct {
|
uint64_t high;
|
||||||
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
|
|
||||||
};
|
|
||||||
|
|
||||||
constexpr value128(uint64_t _low, uint64_t _high) noexcept
|
constexpr value128(uint64_t _low, uint64_t _high) noexcept
|
||||||
: low(_low), high(_high) {}
|
: low(_low), high(_high) {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user