diff options
author | lloyd <[email protected]> | 2015-02-03 08:11:45 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-02-03 08:11:45 +0000 |
commit | f9a7c85b74be0f4a7273e8e0591703af83036e81 (patch) | |
tree | 075dbe119fc16863cad99b432ca6251778bd8fd1 /src/lib/utils | |
parent | 69d2cd919c698a6b138b2ccba0de5d5aa2a33a03 (diff) |
Convert PK operations to using Algo_Registry instead of Engine.
Remove global PRNG.
Diffstat (limited to 'src/lib/utils')
-rw-r--r-- | src/lib/utils/cpuid.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/utils/cpuid.h b/src/lib/utils/cpuid.h index 14901199c..5d8093753 100644 --- a/src/lib/utils/cpuid.h +++ b/src/lib/utils/cpuid.h @@ -27,7 +27,12 @@ class BOTAN_DLL CPUID /** * Return a best guess of the cache line size */ - static size_t cache_line_size() { return g_cache_line_size; } + static size_t cache_line_size() { initialize(); return g_cache_line_size; } + + /** + * Check if the processor supports AltiVec/VMX + */ + static bool has_altivec() { initialize(); return g_altivec_capable; } /** * Check if the processor supports RDTSC @@ -113,11 +118,6 @@ class BOTAN_DLL CPUID static bool has_rdseed() { return x86_processor_flags_has(CPUID_RDSEED_BIT); } - /** - * Check if the processor supports AltiVec/VMX - */ - static bool has_altivec() { return g_altivec_capable; } - static void print(std::ostream& o); private: enum CPUID_bits { |