Fix Cycles SSE4 define for fast math rint function.
Differential Revision: https://developer.blender.org/D16708
This commit is contained in:
parent
48b5dcdbe8
commit
3124241256
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue