mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Avoid accessing union value through inactive member
This commit is contained in:
parent
d8638a597f
commit
ef4f185d9b
@ -13,7 +13,8 @@
|
||||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
||||
|
||||
// Uncomment for benchmarking C++ against NEON
|
||||
// Uncomment for benchmarking C++ against SSE2 or NEON
|
||||
// #undef CRYPTOPP_BOOL_SSE4_INTRINSICS_AVAILABLE
|
||||
// #undef CRYPTOPP_BOOL_NEON_INTRINSICS_AVAILABLE
|
||||
|
||||
// Visual Studio needs both VS2005 (1400) and _M_64 for SSE2 and _mm_set_epi64x()
|
||||
@ -46,7 +47,7 @@ inline __m128i _mm_set_epi64x(const uint64_t a, const uint64_t b)
|
||||
|
||||
INT_128_64 v;
|
||||
v.v64[0] = b; v.v64[1] = a;
|
||||
return v.v128;
|
||||
return *(reinterpret_cast<__m128i*>(v.v64));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user