summaryrefslogtreecommitdiffstats
path: root/libclc/amdgpu
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:38 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:38 +0000
commit2d3b6dfdca75a9ec8bb783ab7b50d68c7f6ca6d3 (patch)
treee79ced5b043164f7eb2fd7072a0171faf462d820 /libclc/amdgpu
parent021264c75a0c5046a59c4e3f4a86e27aabfc0823 (diff)
downloadbcm5719-llvm-2d3b6dfdca75a9ec8bb783ab7b50d68c7f6ca6d3.tar.gz
bcm5719-llvm-2d3b6dfdca75a9ec8bb783ab7b50d68c7f6ca6d3.zip
amdgpu/half_exp2: Switch implementation to native_exp2
Reviewer: Tom Stellard <tstellar@redhat.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 325057
Diffstat (limited to 'libclc/amdgpu')
-rw-r--r--libclc/amdgpu/lib/SOURCES1
-rw-r--r--libclc/amdgpu/lib/math/half_exp2.cl6
2 files changed, 7 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES
index 29fd280c484..de1d24b684a 100644
--- a/libclc/amdgpu/lib/SOURCES
+++ b/libclc/amdgpu/lib/SOURCES
@@ -3,6 +3,7 @@ math/native_log.cl
math/native_log10.cl
math/half_exp.cl
math/half_exp10.cl
+math/half_exp2.cl
math/half_rsqrt.cl
math/half_sqrt.cl
math/nextafter.cl
diff --git a/libclc/amdgpu/lib/math/half_exp2.cl b/libclc/amdgpu/lib/math/half_exp2.cl
new file mode 100644
index 00000000000..c93aa59c39c
--- /dev/null
+++ b/libclc/amdgpu/lib/math/half_exp2.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC exp2
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud