summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--generic/include/clc/clc.h1
-rw-r--r--generic/include/clc/math/floor.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index 8b41523..4f49760 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -36,6 +36,7 @@
#include <clc/math/exp.h>
#include <clc/math/exp2.h>
#include <clc/math/fabs.h>
+#include <clc/math/floor.h>
#include <clc/math/fma.h>
#include <clc/math/hypot.h>
#include <clc/math/log.h>
diff --git a/generic/include/clc/math/floor.h b/generic/include/clc/math/floor.h
new file mode 100644
index 0000000..abb7c2a
--- /dev/null
+++ b/generic/include/clc/math/floor.h
@@ -0,0 +1,6 @@
+#undef floor
+#define floor __clc_floor
+
+#define FUNCTION __clc_floor
+#define INTRINSIC "llvm.floor"
+#include <clc/math/unary_intrin.inc>