diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-09-14 09:18:10 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-09-14 09:18:10 -0500 |
| commit | 4e16abd7428a020c136b35a96284f1af4b261f6e (patch) | |
| tree | 3772a61967a028e653bba64f199fcbfea50537eb /Source/Core/Common/x64CPUDetect.cpp | |
| parent | 1f7871f9e2a9c560676fcd7a9961104af11b2ad6 (diff) | |
| parent | 40b18f09b2ce03f908b5303643b352d084b0c4b4 (diff) | |
Merge pull request #1083 from FioraAeterna/lzcnt
Add LZCNT support, use in cntlzw
Diffstat (limited to 'Source/Core/Common/x64CPUDetect.cpp')
| -rw-r--r-- | Source/Core/Common/x64CPUDetect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/x64CPUDetect.cpp b/Source/Core/Common/x64CPUDetect.cpp index 8c3738034a..0da02d0fb4 100644 --- a/Source/Core/Common/x64CPUDetect.cpp +++ b/Source/Core/Common/x64CPUDetect.cpp @@ -197,6 +197,7 @@ void CPUInfo::Detect() // Check for more features. __cpuid(cpu_id, 0x80000001); if (cpu_id[2] & 1) bLAHFSAHF64 = true; + if ((cpu_id[2] >> 5) & 1) bLZCNT = true; if ((cpu_id[3] >> 29) & 1) bLongMode = true; } |
