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 _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs