summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/math/fabs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/include/clc/math/fabs.h')
-rw-r--r--libclc/generic/include/clc/math/fabs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/math/fabs.h b/libclc/generic/include/clc/math/fabs.h
new file mode 100644
index 00000000000..4da013ce94c
--- /dev/null
+++ b/libclc/generic/include/clc/math/fabs.h
@@ -0,0 +1,6 @@
+#undef fabs
+#define fabs __clc_fabs
+
+#define FUNCTION __clc_fabs
+#define INTRINSIC "llvm.fabs"
+#include <clc/math/unary_intrin.inc>
OpenPOWER on IntegriCloud