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:
@@ -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_
|
||||||
|
|||||||
Reference in New Issue
Block a user