summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/math/floor.h
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/include/clc/math/floor.h')
-rw-r--r--libclc/generic/include/clc/math/floor.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libclc/generic/include/clc/math/floor.h b/libclc/generic/include/clc/math/floor.h
index 2337d35caae..b4e96444a6a 100644
--- a/libclc/generic/include/clc/math/floor.h
+++ b/libclc/generic/include/clc/math/floor.h
@@ -1,6 +1,7 @@
-#undef floor
-#define floor __clc_floor
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION floor
-#define __CLC_FUNCTION __clc_floor
-#define __CLC_INTRINSIC "llvm.floor"
-#include <clc/math/unary_intrin.inc>
+#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
OpenPOWER on IntegriCloud