summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/remainder.cl
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-03-19 01:01:10 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-03-19 01:01:10 +0000
commit5b10494fa8a305370ba6bc150dba5038188bcf50 (patch)
tree9a86e88463058ad97534407a7663503ca5f277a2 /libclc/generic/lib/math/remainder.cl
parent793733a6c832455c939667bf1845655fe1fc44b4 (diff)
downloadbcm5719-llvm-5b10494fa8a305370ba6bc150dba5038188bcf50.tar.gz
bcm5719-llvm-5b10494fa8a305370ba6bc150dba5038188bcf50.zip
remainder: Port from amd builtins
Mostly ported from amd_builtins, uses only denormal path for fp32. Passes CTS on carrizo and turks Reviewer: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 327818
Diffstat (limited to 'libclc/generic/lib/math/remainder.cl')
-rw-r--r--libclc/generic/lib/math/remainder.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/remainder.cl b/libclc/generic/lib/math/remainder.cl
new file mode 100644
index 00000000000..0a22ee8be2d
--- /dev/null
+++ b/libclc/generic/lib/math/remainder.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+#include <math/clc_remainder.h>
+
+#define __CLC_FUNC remainder
+#define __CLC_BODY <clc_sw_binary.inc>
+#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud