Fix Cycles SSE4 define for fast math rint function.

Differential Revision: https://developer.blender.org/D16708
This commit is contained in:
Thomas Dinges 2022-12-06 19:06:43 +01:00
parent 48b5dcdbe8
commit 3124241256
1 changed files with 1 additions and 1 deletions

View File

@ -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