diff options
author | Thomas Dinges <blender@dingto.org> | 2015-02-11 13:28:42 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2015-02-11 13:28:42 +0300 |
commit | f2951c23cf8d84bdb0964f53a93957f31c8b9f41 (patch) | |
tree | d45ecf24c9ad452a869332a220d04bd9214022be /intern/cycles/util/util_system.cpp | |
parent | 8668006519e39c0fcaf2e3f2b5e508eb8478e2e4 (diff) |
Cleanup: Remove unused Cycles cpuid code.
Diffstat (limited to 'intern/cycles/util/util_system.cpp')
-rw-r--r-- | intern/cycles/util/util_system.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp index 6d6bee209b4..7206455debd 100644 --- a/intern/cycles/util/util_system.cpp +++ b/intern/cycles/util/util_system.cpp @@ -164,18 +164,13 @@ static CPUCapabilities& system_cpu_capabilities() static bool caps_init = false; if(!caps_init) { - int result[4], num; //, num_ex; + int result[4], num; memset(&caps, 0, sizeof(caps)); __cpuid(result, 0); num = result[0]; -#if 0 - __cpuid(result, 0x80000000); - num_ex = result[0]; -#endif - if(num >= 1) { __cpuid(result, 0x00000001); caps.mmx = (result[3] & ((int)1 << 23)) != 0; @@ -213,16 +208,6 @@ static CPUCapabilities& system_cpu_capabilities() caps.avx2 = (result[1] & ((int)1 << 5)) != 0; } -#if 0 - if(num_ex >= 0x80000001) { - __cpuid(result, 0x80000001); - caps.x64 = (result[3] & ((int)1 << 29)) != 0; - caps.sse4a = (result[2] & ((int)1 << 6)) != 0; - caps.fma4 = (result[2] & ((int)1 << 16)) != 0; - caps.xop = (result[2] & ((int)1 << 11)) != 0; - } -#endif - system_cpu_capabilities_override(&caps); caps_init = true; |