summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include
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/include
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/include')
-rw-r--r--libclc/generic/include/clc/clc.h1
-rw-r--r--libclc/generic/include/clc/math/half_divide.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h
index 9e4b18591dc..930bbfc176d 100644
--- a/libclc/generic/include/clc/clc.h
+++ b/libclc/generic/include/clc/clc.h
@@ -71,6 +71,7 @@
#include <clc/math/fract.h>
#include <clc/math/frexp.h>
#include <clc/math/half_cos.h>
+#include <clc/math/half_divide.h>
#include <clc/math/half_exp.h>
#include <clc/math/half_exp10.h>
#include <clc/math/half_exp2.h>
diff --git a/libclc/generic/include/clc/math/half_divide.h b/libclc/generic/include/clc/math/half_divide.h
new file mode 100644
index 00000000000..84096b94734
--- /dev/null
+++ b/libclc/generic/include/clc/math/half_divide.h
@@ -0,0 +1,7 @@
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+#define __CLC_FUNCTION half_divide
+
+#include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
OpenPOWER on IntegriCloud