diff options
author | lloyd <[email protected]> | 2012-05-10 14:55:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-05-10 14:55:59 +0000 |
commit | c26068b5c08d6121ad83ea41ad220e3fb095bced (patch) | |
tree | e1fc0fff3491c24f2e79db11c9b7ea85e395606f /src/utils | |
parent | de405c6e32b62d1c88afa9cd9e374780d0821ccb (diff) |
We were checking the wrong bit for rdrand support. Found using SDE's
-ivb_rdrnd_cpuid option to toggle the bit off and on. Fortunately on
Intel processors the bit we were actually checking is also enabled by
Ivy Bridge. However it is also used on AMD Bulldozer processors to
signal half-precision floating point support so we could false
positive there.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/cpuid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/cpuid.h b/src/utils/cpuid.h index ad85ac4fe..cdc6417ec 100644 --- a/src/utils/cpuid.h +++ b/src/utils/cpuid.h @@ -103,7 +103,7 @@ class BOTAN_DLL CPUID CPUID_MOVBE_BIT = 54, CPUID_AESNI_BIT = 57, CPUID_AVX_BIT = 60, - CPUID_RDRAND_BIT = 61 + CPUID_RDRAND_BIT = 62 }; static bool x86_processor_flags_has(u64bit bit) |