Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-06 15:27:29 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-06 15:37:06 +0300
commitf08191a4596a23dd6372b5b82ed3d5623899b139 (patch)
tree9e845382f40a794141bef95b11322bf8f1067adf /intern/cycles/util
parente290a0b0568ecfcf47aa55b059de468b2c651e19 (diff)
Fix Cycles build error on non-x86 processors.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_simd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/cycles/util/util_simd.h b/intern/cycles/util/util_simd.h
index 565ea768089..c92fc1ae391 100644
--- a/intern/cycles/util/util_simd.h
+++ b/intern/cycles/util/util_simd.h
@@ -45,6 +45,14 @@
#endif
+#if defined(__x86_64__) || defined(__i386__) || defined(_M_X64) || defined(_M_IX86)
+ #define SIMD_SET_FLUSH_TO_ZERO \
+ _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); \
+ _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
+#else
+ #define SIMD_SET_FLUSH_TO_ZERO
+#endif
+
CCL_NAMESPACE_BEGIN
#ifdef __KERNEL_SSE2__