summaryrefslogtreecommitdiff
path: root/libclc/amdgpu
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:35 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:35 +0000
commit4879dd74718e6765b6943a885a06fbddf31999db (patch)
tree5c7966014de158263bf500e099aa02a855a5c95e /libclc/amdgpu
parentbca92445ba20643428f36a67f91f136df82b4546 (diff)
downloadllvm-4879dd74718e6765b6943a885a06fbddf31999db.tar.gz
amdgpu/half_exp: Switch implementation to native_exp
Reviewer: Tom Stellard <tstellar@redhat.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 325055
Diffstat (limited to 'libclc/amdgpu')
-rw-r--r--libclc/amdgpu/lib/SOURCES1
-rw-r--r--libclc/amdgpu/lib/math/half_exp.cl6
2 files changed, 7 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES
index b55337f55197..4979925fcac9 100644
--- a/libclc/amdgpu/lib/SOURCES
+++ b/libclc/amdgpu/lib/SOURCES
@@ -1,6 +1,7 @@
math/native_exp.cl
math/native_log.cl
math/native_log10.cl
+math/half_exp.cl
math/half_rsqrt.cl
math/half_sqrt.cl
math/nextafter.cl
diff --git a/libclc/amdgpu/lib/math/half_exp.cl b/libclc/amdgpu/lib/math/half_exp.cl
new file mode 100644
index 000000000000..dd561472dbe7
--- /dev/null
+++ b/libclc/amdgpu/lib/math/half_exp.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC exp
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>