aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/cpuid.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-10 07:39:52 +0000
committerlloyd <[email protected]>2009-11-10 07:39:52 +0000
commit743014387833eb52e71fc9d4381e2a546e80f158 (patch)
tree2d96541d1d00e5e0a16476e1cccbddf5380689d4 /src/utils/cpuid.h
parent7e50031d49653e3d76cd972e5909eab1795e248a (diff)
Rename CPUID::has_intel_aes to has_aes_intel, and add CPUID::has_aes_via,
which is currently just a stub returning false.
Diffstat (limited to 'src/utils/cpuid.h')
-rw-r--r--src/utils/cpuid.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/utils/cpuid.h b/src/utils/cpuid.h
index 8b8021754..455721af9 100644
--- a/src/utils/cpuid.h
+++ b/src/utils/cpuid.h
@@ -60,11 +60,20 @@ class CPUID
{ return ((x86_processor_flags() >> CPUID_SSE42_BIT) & 1); }
/**
- * Check if the processor supports Intel AES instructions
+ * Check if the processor supports Intel's AES instructions
*/
- static bool has_intel_aes()
+ static bool has_aes_intel()
{ return ((x86_processor_flags() >> CPUID_INTEL_AES_BIT) & 1); }
+ /**
+ * Check if the processor supports VIA's AES instructions
+ * (not implemented)
+ */
+ static bool has_aes_via() { return false; }
+
+ /**
+ * Check if the processor supports AltiVec/VMX
+ */
static bool has_altivec();
private:
static u64bit x86_processor_flags();