summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/math/half_binary.inc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-01-18 21:12:06 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-01-18 21:12:06 +0000
commit44e0522c09a8338101a26f471b4abae96feb7a8d (patch)
tree7a2b87cec10fed2fa10a200d1d718e784cfe26b1 /libclc/generic/lib/math/half_binary.inc
parent2813b4f8d9f9797f69cac72d685aabc366fcd523 (diff)
downloadbcm5719-llvm-44e0522c09a8338101a26f471b4abae96feb7a8d.tar.gz
bcm5719-llvm-44e0522c09a8338101a26f471b4abae96feb7a8d.zip
half_divide: Implement using x/y
Passes CTS on carrizo v2: Use full precision implementation Reviewer: Jeroen Ketema <j.ketema@xs4all.nl> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 322899
Diffstat (limited to 'libclc/generic/lib/math/half_binary.inc')
-rw-r--r--libclc/generic/lib/math/half_binary.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/half_binary.inc b/libclc/generic/lib/math/half_binary.inc
new file mode 100644
index 00000000000..f831b530b4b
--- /dev/null
+++ b/libclc/generic/lib/math/half_binary.inc
@@ -0,0 +1,9 @@
+#include <utils.h>
+
+#define __CLC_HALF_FUNC(x) __CLC_CONCAT(half_, x)
+
+_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE __CLC_HALF_FUNC(__CLC_FUNC)(__CLC_GENTYPE x, __CLC_GENTYPE y) {
+ return __CLC_FUNC(x, y);
+}
+
+#undef __CLC_HALF_FUNC
OpenPOWER on IntegriCloud