summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-04-06 17:43:08 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-04-06 17:43:08 +0000
commit93af966747b59d37c57312a0c0242151076c072b (patch)
treedc650f9c805a212c57f9f05420277f780954e722 /libclc/generic/include
parent1c50cb2077393e4a0e3568868fe0068ce306b005 (diff)
downloadbcm5719-llvm-93af966747b59d37c57312a0c0242151076c072b.tar.gz
bcm5719-llvm-93af966747b59d37c57312a0c0242151076c072b.zip
fmod: Port from amd_builtins
Uses only denormal path for fp32. Passes CTS on carrizo and turks. v2: whitespace fix Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewer: Aaron Watry <awatry@gmail.com> llvm-svn: 329433
Diffstat (limited to 'libclc/generic/include')
-rw-r--r--libclc/generic/include/clc/math/fmod.h4
-rw-r--r--libclc/generic/include/clc/math/fmod.inc1
-rw-r--r--libclc/generic/include/math/clc_fmod.h4
3 files changed, 7 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/math/fmod.h b/libclc/generic/include/clc/math/fmod.h
index 49068675b0e..443eaf38dca 100644
--- a/libclc/generic/include/clc/math/fmod.h
+++ b/libclc/generic/include/clc/math/fmod.h
@@ -1,2 +1,4 @@
-#define __CLC_BODY <clc/math/fmod.inc>
+#define __CLC_FUNCTION fmod
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
#include <clc/math/gentype.inc>
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/fmod.inc b/libclc/generic/include/clc/math/fmod.inc
deleted file mode 100644
index 39d915365c2..00000000000
--- a/libclc/generic/include/clc/math/fmod.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE fmod(__CLC_GENTYPE a, __CLC_GENTYPE b);
diff --git a/libclc/generic/include/math/clc_fmod.h b/libclc/generic/include/math/clc_fmod.h
new file mode 100644
index 00000000000..0409785ee50
--- /dev/null
+++ b/libclc/generic/include/math/clc_fmod.h
@@ -0,0 +1,4 @@
+#define __CLC_FUNCTION __clc_fmod
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+#include <clc/math/gentype.inc>
+#undef __CLC_FUNCTION
OpenPOWER on IntegriCloud