From 289f3caa2a5a3cbf4842b2599caa49cd24851676 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 7 Nov 2017 16:19:46 -0500 Subject: [PATCH] Fix GCC version for RDRAND and RDSEED intrinsics --- rdrand.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rdrand.cpp b/rdrand.cpp index 954cc80a..900fcd96 100644 --- a/rdrand.cpp +++ b/rdrand.cpp @@ -87,7 +87,7 @@ #if (ALL_RDRAND_INTRIN_AVAILABLE || ALL_RDSEED_INTRIN_AVAILABLE) # include // rdrand, MSC, ICC, GCC, and SunCC -# if defined(__GNUC__) && (CRYPTOPP_GCC_VERSION >= 40600) +# if defined(__GNUC__) && (CRYPTOPP_GCC_VERSION >= 40700) # include // rdseed for some compilers, like GCC # endif # if defined(__has_include) @@ -134,7 +134,7 @@ inline void RDRAND32(void* output) : "=a" (*reinterpret_cast(output)) : : "cc" ); -#elif defined(GCC_RDRAND_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40600) +#elif defined(GCC_RDRAND_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40700) __asm__ __volatile__ ( INTEL_NOPREFIX @@ -176,7 +176,7 @@ inline void RDRAND64(void* output) : "=a" (*reinterpret_cast(output)) : : "cc" ); -#elif defined(GCC_RDRAND_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40600) +#elif defined(GCC_RDRAND_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40700) __asm__ __volatile__ ( INTEL_NOPREFIX @@ -291,7 +291,7 @@ inline void RDSEED32(void* output) : "=a" (*reinterpret_cast(output)) : : "cc" ); -#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40600) +#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40700) __asm__ __volatile__ ( INTEL_NOPREFIX @@ -333,7 +333,7 @@ inline void RDSEED64(void* output) : "=a" (*reinterpret_cast(output)) : : "cc" ); -#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40600) +#elif defined(GCC_RDSEED_ASM_AVAILABLE) && (CRYPTOPP_GCC_VERSION >= 40700) __asm__ __volatile__ ( INTEL_NOPREFIX