summaryrefslogtreecommitdiffstats
path: root/libclc/amdgpu/lib/math
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:37 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:37 +0000
commit021264c75a0c5046a59c4e3f4a86e27aabfc0823 (patch)
tree538ce86c628d1da667c4c49d6b56a149c5790315 /libclc/amdgpu/lib/math
parent4879dd74718e6765b6943a885a06fbddf31999db (diff)
downloadbcm5719-llvm-021264c75a0c5046a59c4e3f4a86e27aabfc0823.tar.gz
bcm5719-llvm-021264c75a0c5046a59c4e3f4a86e27aabfc0823.zip
amdgpu/half_exp10: Switch implementation to native_exp10
Reviewer: Tom Stellard <tstellar@redhat.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 325056
Diffstat (limited to 'libclc/amdgpu/lib/math')
-rw-r--r--libclc/amdgpu/lib/math/half_exp10.cl6
1 files changed, 6 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/math/half_exp10.cl b/libclc/amdgpu/lib/math/half_exp10.cl
new file mode 100644
index 00000000000..31493e60646
--- /dev/null
+++ b/libclc/amdgpu/lib/math/half_exp10.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC exp10
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>
OpenPOWER on IntegriCloud