[Bf-blender-cvs] [3124241256b] master: Fix Cycles SSE4 define for fast math rint function.
Thomas Dinges
noreply at git.blender.org
Tue Dec 6 19:08:19 CET 2022
Commit: 3124241256bfb10fc2e7b0cd9b39d65f3979b1e2
Author: Thomas Dinges
Date: Tue Dec 6 19:06:43 2022 +0100
Branches: master
https://developer.blender.org/rB3124241256bfb10fc2e7b0cd9b39d65f3979b1e2
Fix Cycles SSE4 define for fast math rint function.
Differential Revision: https://developer.blender.org/D16708
===================================================================
M intern/cycles/util/math_fast.h
===================================================================
diff --git a/intern/cycles/util/math_fast.h b/intern/cycles/util/math_fast.h
index fc7eadb112b..f7576668151 100644
--- a/intern/cycles/util/math_fast.h
+++ b/intern/cycles/util/math_fast.h
@@ -58,7 +58,7 @@ ccl_device_inline float4 madd4(const float4 a, const float4 b, const float4 c)
ccl_device_inline int fast_rint(float x)
{
/* used by sin/cos/tan range reduction. */
-#ifdef __KERNEL_SSE4__
+#ifdef __KERNEL_SSE41__
/* Single `roundps` instruction on SSE4.1+ (for gcc/clang at least). */
return float_to_int(rintf(x));
#else
More information about the Bf-blender-cvs
mailing list