diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-06 13:15:55 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-06 13:15:55 +0300 |
commit | 460681bd62ab920acc1e12f1ae7c6ec37595b22d (patch) | |
tree | 750077d9664986a95d0d1a15786d3637c685139e /intern/cycles | |
parent | 40f237675f8627aefd1d5f46841ce03faf7b52e2 (diff) |
Cycles: Use proper constant name for 1/pi in fast math
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/util/util_math_fast.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |