Cycles: Fix compilation error on NVidia OpenCL after recent refactor

Still need to verify this is proper thing to do for AMD OpenCL. At least now
i can compile OpenCL kernel on my laptop with sm21 card.
This commit is contained in:
Sergey Sharybin 2017-08-07 20:52:24 +02:00
parent 947040cf2b
commit a4bbce8949

@ -129,6 +129,7 @@
# define expf(x) native_exp(((float)(x)))
# define sqrtf(x) native_sqrt(((float)(x)))
# define logf(x) native_log(((float)(x)))
# define rcp(x) native_recip(x)
#else
# define sinf(x) sin(((float)(x)))
# define cosf(x) cos(((float)(x)))
@ -136,6 +137,7 @@
# define expf(x) exp(((float)(x)))
# define sqrtf(x) sqrt(((float)(x)))
# define logf(x) log(((float)(x)))
# define rcp(x) recip(x))
#endif
/* data lookup defines */