summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/native_sin.cl
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/lib/math/native_sin.cl')
-rw-r--r--libclc/generic/lib/math/native_sin.cl7
1 files changed, 7 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/native_sin.cl b/libclc/generic/lib/math/native_sin.cl
new file mode 100644
index 00000000000..fd9232f188e
--- /dev/null
+++ b/libclc/generic/lib/math/native_sin.cl
@@ -0,0 +1,7 @@
+#include <clc/clc.h>
+
+#define __CLC_NATIVE_INTRINSIC sin
+
+#define __CLC_BODY <native_unary_intrinsic.inc>
+#define __FLOAT_ONLY
+#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud