summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/native_sin.cl
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-10 22:16:36 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-10 22:16:36 +0000
commit1f34c851e0af55eecc84ac833bb624f5ab1b3077 (patch)
tree6782d00a1c75daee9cd3462490b6c48979e47f1e /libclc/generic/lib/math/native_sin.cl
parent0750b7df51cfa19600fa3cdcd34b06268c97e5e8 (diff)
downloadbcm5719-llvm-1f34c851e0af55eecc84ac833bb624f5ab1b3077.tar.gz
bcm5719-llvm-1f34c851e0af55eecc84ac833bb624f5ab1b3077.zip
native_sin: Switch implementation to llvm intrinsic
Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 317939
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