From 460681bd62ab920acc1e12f1ae7c6ec37595b22d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 6 Feb 2015 15:15:55 +0500 Subject: [PATCH] Cycles: Use proper constant name for 1/pi in fast math --- intern/cycles/util/util_math_fast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/util/util_math_fast.h b/intern/cycles/util/util_math_fast.h index 9b432fcf067..540726da410 100644 --- a/intern/cycles/util/util_math_fast.h +++ b/intern/cycles/util/util_math_fast.h @@ -154,7 +154,7 @@ ccl_device float fast_cosf(float x) ccl_device void fast_sincosf(float x, float* sine, float* cosine) { /* Same argument reduction as fast_sin. */ - int q = fast_rint(x * float(M_1_PI)); + int q = fast_rint(x * M_1_PI_F); float qf = q; x = madd(qf, -0.78515625f*4, x); x = madd(qf, -0.00024187564849853515625f*4, x);