diff options
Diffstat (limited to 'backend/src/libocl/tmpl/ocl_math_common.tmpl.cl')
-rw-r--r-- | backend/src/libocl/tmpl/ocl_math_common.tmpl.cl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/src/libocl/tmpl/ocl_math_common.tmpl.cl b/backend/src/libocl/tmpl/ocl_math_common.tmpl.cl index c370864a..e6452388 100644 --- a/backend/src/libocl/tmpl/ocl_math_common.tmpl.cl +++ b/backend/src/libocl/tmpl/ocl_math_common.tmpl.cl @@ -1089,6 +1089,11 @@ OVERLOADABLE double cosh(double x) } +OVERLOADABLE double cospi(double x) +{ + return cos(x*M_PI); +} + OVERLOADABLE double fabs(double x) { long qw = as_ulong(x); |