summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-13 18:28:51 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-13 18:28:51 +0000
commita6758c94ef1a74e363025fdcc6d74a7010e644c9 (patch)
tree51a8828ae35d1bbf86996042124d6c3f830d1c89 /libclc/generic/include/clc
parent541a3f07589bc92fcb14b85f6e12f4d56cd504de (diff)
downloadbcm5719-llvm-a6758c94ef1a74e363025fdcc6d74a7010e644c9.tar.gz
bcm5719-llvm-a6758c94ef1a74e363025fdcc6d74a7010e644c9.zip
native_rsqrt: Switch implementation to 1 / native_sqrt
Reviewer: Jeroen Ketema Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 318065
Diffstat (limited to 'libclc/generic/include/clc')
-rw-r--r--libclc/generic/include/clc/math/native_rsqrt.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libclc/generic/include/clc/math/native_rsqrt.h b/libclc/generic/include/clc/math/native_rsqrt.h
index eabc425984a..dbc8deb9766 100644
--- a/libclc/generic/include/clc/math/native_rsqrt.h
+++ b/libclc/generic/include/clc/math/native_rsqrt.h
@@ -1 +1,9 @@
-#define native_rsqrt rsqrt
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION native_rsqrt
+#define __FLOAT_ONLY
+
+#include <clc/math/gentype.inc>
+
+#undef __FLOAT_ONLY
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
OpenPOWER on IntegriCloud