diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-12-08 21:43:17 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-12-08 21:43:17 +0300 |
commit | 52c834983f68974d554f11a144fef6f3a4acac82 (patch) | |
tree | 51576295b3d241fe651401696c55e9af5286f311 /intern/cycles/kernel/kernel_compat_opencl.h | |
parent | f16bca72123b279a7c1e395abb75fb4032150391 (diff) |
Fix T72282: Cycles OpenCL error after recent math node changes
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_opencl.h')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_opencl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_compat_opencl.h b/intern/cycles/kernel/kernel_compat_opencl.h index 552734cc361..4963f1cd196 100644 --- a/intern/cycles/kernel/kernel_compat_opencl.h +++ b/intern/cycles/kernel/kernel_compat_opencl.h @@ -126,6 +126,8 @@ #define fminf(x, y) fmin(((float)(x)), ((float)(y))) #define fmodf(x, y) fmod((float)(x), (float)(y)) #define sinhf(x) sinh(((float)(x))) +#define coshf(x) cosh(((float)(x))) +#define tanhf(x) tanh(((float)(x))) /* Use native functions with possibly lower precision for performance, * no issues found so far. */ |