summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/math
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/math
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/math')
-rw-r--r--libclc/generic/include/math/clc_fmod.h4
1 files changed, 4 insertions, 0 deletions
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