2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

When BOOST_UUID_NO_SIMD is defined, undef all other SIMD macros, because otherwise the configuration becomes inconsistent

This commit is contained in:
Peter Dimov
2026-01-06 16:32:16 +02:00
parent e567490082
commit 347258c6c8

View File

@@ -19,7 +19,18 @@
#pragma once #pragma once
#endif #endif
#if !defined(BOOST_UUID_NO_SIMD) #if defined(BOOST_UUID_NO_SIMD)
#undef BOOST_UUID_USE_SSE2
#undef BOOST_UUID_USE_SSE3
#undef BOOST_UUID_USE_SSSE3
#undef BOOST_UUID_USE_SSE41
#undef BOOST_UUID_USE_AVX
#undef BOOST_UUID_USE_AVX2
#undef BOOST_UUID_USE_AVX512_V1
#undef BOOST_UUID_USE_AVX10_1
#else
#if defined(__GNUC__) && defined(__SSE2__) #if defined(__GNUC__) && defined(__SSE2__)
@@ -121,6 +132,6 @@
#define BOOST_UUID_NO_SIMD #define BOOST_UUID_NO_SIMD
#endif #endif
#endif // !defined(BOOST_UUID_NO_SIMD) #endif // defined(BOOST_UUID_NO_SIMD)
#endif // BOOST_UUID_DETAIL_CONFIG_HPP_INCLUDED_ #endif // BOOST_UUID_DETAIL_CONFIG_HPP_INCLUDED_