[Bf-blender-cvs] [eb4f2b4] master: Fix missing brackets in cpuid bitfield check. concern raised by lukas_t (rBef73d547cc7c663ad180721094c81b3c81482ac3)
Martijn Berger
noreply at git.blender.org
Tue Feb 25 19:53:09 CET 2014
Commit: eb4f2b489702498d1c6ad0bd27b5845d8e475a24
Author: Martijn Berger
Date: Tue Feb 25 19:50:53 2014 +0100
https://developer.blender.org/rBeb4f2b489702498d1c6ad0bd27b5845d8e475a24
Fix missing brackets in cpuid bitfield check.
concern raised by lukas_t (rBef73d547cc7c663ad180721094c81b3c81482ac3)
===================================================================
M intern/cycles/util/util_system.cpp
===================================================================
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp
index c489862..9a7f142 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) {
More information about the Bf-blender-cvs
mailing list