Simplify HAVE_RDRND check not to require base

This commit is contained in:
Boris Kolpackov 2022-04-24 12:15:15 +02:00
parent 79d26b5bb3
commit 55d590890e

View File

@ -1,4 +1,4 @@
// HAVE_RDRND : HAVE_AVX2 // HAVE_RDRND
#undef HAVE_RDRND #undef HAVE_RDRND
@ -16,6 +16,6 @@
* Note that RDRND intrinsics were added to Visual C++ 2015 according to * Note that RDRND intrinsics were added to Visual C++ 2015 according to
* Wikipedia. * Wikipedia.
*/ */
#if defined(__RDRND__) || (defined(_MSC_VER) && defined(HAVE_AVX2)) #if defined(__RDRND__) || (defined(_MSC_VER) && defined(__AVX2__))
# define HAVE_RDRND 1 # define HAVE_RDRND 1
#endif #endif