summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/math
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/include/math')
-rw-r--r--libclc/generic/include/math/clc_fma.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libclc/generic/include/math/clc_fma.h b/libclc/generic/include/math/clc_fma.h
new file mode 100644
index 00000000000..3ae6a744b05
--- /dev/null
+++ b/libclc/generic/include/math/clc_fma.h
@@ -0,0 +1,11 @@
+#define __CLC_FUNCTION __clc_fma
+#define __CLC_INTRINSIC "llvm.fma"
+#include <clc/math/ternary_intrin.inc>
+
+#define __FLOAT_ONLY
+#define __CLC_FUNCTION __clc_sw_fma
+#define __CLC_BODY <clc/math/ternary_decl.inc>
+#include <clc/math/gentype.inc>
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
+#undef __FLOAT_ONLY
OpenPOWER on IntegriCloud