summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:06:06 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2019-03-13 07:06:06 +0000
commitb3d64e4a83e0de4f2ac1d498637432cf29c1c6a5 (patch)
tree30aad505881f83202d47a3aeb2c9b4167c57d686 /libclc/generic/include
parentfd199f013948d6d9304caefed4cfd35d6f1e18ca (diff)
downloadbcm5719-llvm-b3d64e4a83e0de4f2ac1d498637432cf29c1c6a5.tar.gz
bcm5719-llvm-b3d64e4a83e0de4f2ac1d498637432cf29c1c6a5.zip
rint: Remove llvm intrinsic from the header.
Reviewer: Aaron Watry Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 356016
Diffstat (limited to 'libclc/generic/include')
-rw-r--r--libclc/generic/include/clc/math/rint.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libclc/generic/include/clc/math/rint.h b/libclc/generic/include/clc/math/rint.h
index d257634a6f9..d036d3ee84b 100644
--- a/libclc/generic/include/clc/math/rint.h
+++ b/libclc/generic/include/clc/math/rint.h
@@ -1,6 +1,7 @@
-#undef rint
-#define rint __clc_rint
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION rint
-#define __CLC_FUNCTION __clc_rint
-#define __CLC_INTRINSIC "llvm.rint"
-#include <clc/math/unary_intrin.inc>
+#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
OpenPOWER on IntegriCloud