aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/cpuid.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-29 04:17:35 +0000
committerlloyd <[email protected]>2009-10-29 04:17:35 +0000
commit9b35547f5862ac2d34573d7421eb8be05c6064ae (patch)
tree1d903ab2cbc0d4aff8bbc0d76c0c122ee4c0fd4f /src/utils/cpuid.h
parentd5412353bec03ae91d69286ee53369cd9588dcda (diff)
Add CPUID::have_altivec for AltiVec runtime detection.
Relies on mfspr emulation/trapping by the kernel, which works on (at least) Linux and NetBSD.
Diffstat (limited to 'src/utils/cpuid.h')
-rw-r--r--src/utils/cpuid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/cpuid.h b/src/utils/cpuid.h
index 0b210768a..8b8021754 100644
--- a/src/utils/cpuid.h
+++ b/src/utils/cpuid.h
@@ -65,6 +65,7 @@ class CPUID
static bool has_intel_aes()
{ return ((x86_processor_flags() >> CPUID_INTEL_AES_BIT) & 1); }
+ static bool has_altivec();
private:
static u64bit x86_processor_flags();
};