[Bf-blender-cvs] [9620b8f6bbc] master: Cycles: Fix compilation on 32bit Linux with GCC-9

Sergey Sharybin noreply at git.blender.org
Mon Aug 5 11:52:02 CEST 2019


Commit: 9620b8f6bbcf8654d9a01f90cb4585ffec14368d
Author: Sergey Sharybin
Date:   Mon Aug 5 11:47:47 2019 +0200
Branches: master
https://developer.blender.org/rB9620b8f6bbcf8654d9a01f90cb4585ffec14368d

Cycles: Fix compilation on 32bit Linux with GCC-9

We don't use explicit SIMD flags on 32bit, so trying to use
intrinsics was causing issues.

===================================================================

M	intern/cycles/util/util_simd.h

===================================================================

diff --git a/intern/cycles/util/util_simd.h b/intern/cycles/util/util_simd.h
index 8fcaadc5f53..f49cfb4184d 100644
--- a/intern/cycles/util/util_simd.h
+++ b/intern/cycles/util/util_simd.h
@@ -45,7 +45,7 @@
 
 #  endif
 
-#  if defined(__x86_64__) || defined(__i386__) || defined(_M_X64) || defined(_M_IX86)
+#  if defined(__x86_64__) || defined(_M_X64)
 #    define SIMD_SET_FLUSH_TO_ZERO \
       _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); \
       _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);



More information about the Bf-blender-cvs mailing list