summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-01-18 21:11:43 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-01-18 21:11:43 +0000
commitcaa9000b1cdf3fc47dc3b8dcf80cd6c5a02a618b (patch)
treed925d633b91d827caf06cc259d0fb9854f640f80 /libclc/generic/lib
parentb5d556061d1f72b00a9d4c276e8bee76bdb24492 (diff)
downloadbcm5719-llvm-caa9000b1cdf3fc47dc3b8dcf80cd6c5a02a618b.tar.gz
bcm5719-llvm-caa9000b1cdf3fc47dc3b8dcf80cd6c5a02a618b.zip
half_exp: Implement using exp
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: 322890
Diffstat (limited to 'libclc/generic/lib')
-rw-r--r--libclc/generic/lib/SOURCES1
-rw-r--r--libclc/generic/lib/math/half_exp.cl6
2 files changed, 7 insertions, 0 deletions
diff --git a/libclc/generic/lib/SOURCES b/libclc/generic/lib/SOURCES
index 20c79701725..72c96449047 100644
--- a/libclc/generic/lib/SOURCES
+++ b/libclc/generic/lib/SOURCES
@@ -105,6 +105,7 @@ math/fmod.cl
math/fract.cl
math/frexp.cl
math/half_cos.cl
+math/half_exp.cl
math/half_rsqrt.cl
math/half_sqrt.cl
math/hypot.cl
diff --git a/libclc/generic/lib/math/half_exp.cl b/libclc/generic/lib/math/half_exp.cl
new file mode 100644
index 00000000000..97da5d60ea6
--- /dev/null
+++ b/libclc/generic/lib/math/half_exp.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC exp
+#define __CLC_BODY <half_unary.inc>
+#define __FLOAT_ONLY
+#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud