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