diff options
author | Martijn Berger <martijn.berger@gmail.com> | 2014-02-25 22:50:53 +0400 |
---|---|---|
committer | Martijn Berger <martijn.berger@gmail.com> | 2014-02-25 22:52:38 +0400 |
commit | eb4f2b489702498d1c6ad0bd27b5845d8e475a24 (patch) | |
tree | a87b770f5566a902b3a51a45bdeb586efb44af02 /intern/cycles/util/util_system.cpp | |
parent | 0bef196894abd19903b0741ec6250e0558b4f1a4 (diff) |
Fix missing brackets in cpuid bitfield check.
concern raised by lukas_t (rBef73d547cc7c663ad180721094c81b3c81482ac3)
Diffstat (limited to 'intern/cycles/util/util_system.cpp')
-rw-r--r-- | intern/cycles/util/util_system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp index c4898626481..9a7f1427cbe 100644 --- a/intern/cycles/util/util_system.cpp +++ b/intern/cycles/util/util_system.cpp @@ -163,7 +163,7 @@ static CPUCapabilities& system_cpu_capabilities() caps.fma3 = (result[2] & ((int)1 << 12)) != 0; caps.avx = false; - bool os_uses_xsave_xrestore = result[2] & ((int)1 << 27) != 0; + bool os_uses_xsave_xrestore = (result[2] & ((int)1 << 27)) != 0; bool cpu_avx_support = (result[2] & ((int)1 << 28)) != 0; if( os_uses_xsave_xrestore && cpu_avx_support) { |