summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/tan.cl
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/lib/math/tan.cl')
-rw-r--r--libclc/generic/lib/math/tan.cl7
1 files changed, 3 insertions, 4 deletions
diff --git a/libclc/generic/lib/math/tan.cl b/libclc/generic/lib/math/tan.cl
index a447999ea8b..380db67e364 100644
--- a/libclc/generic/lib/math/tan.cl
+++ b/libclc/generic/lib/math/tan.cl
@@ -1,8 +1,7 @@
#include <clc/clc.h>
-#ifdef cl_khr_fp64
-#pragma OPENCL EXTENSION cl_khr_fp64 : enable
-#endif
+#include <math/clc_tan.h>
-#define __CLC_BODY <tan.inc>
+#define __CLC_FUNC tan
+#define __CLC_BODY <clc_sw_unary.inc>
#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud