summaryrefslogtreecommitdiff
path: root/libclc/amdgpu
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:42 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-02-13 22:09:42 +0000
commit86cbf56a4bc20a2e3f5a0c87492cf11fb837ea92 (patch)
treefd6b0ebc0244b3d1aa79f06a1884712303e5a225 /libclc/amdgpu
parent65fd65efbf63514fd71685262417b5e9642c4de9 (diff)
downloadllvm-86cbf56a4bc20a2e3f5a0c87492cf11fb837ea92.tar.gz
amdgpu/half_log10: Switch implementation to native_log10
Reviewer: Tom Stellard <tstellar@redhat.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 325059
Diffstat (limited to 'libclc/amdgpu')
-rw-r--r--libclc/amdgpu/lib/SOURCES1
-rw-r--r--libclc/amdgpu/lib/math/half_log10.cl6
2 files changed, 7 insertions, 0 deletions
diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES
index 8d5160219cde..c86b2ec3f214 100644
--- a/libclc/amdgpu/lib/SOURCES
+++ b/libclc/amdgpu/lib/SOURCES
@@ -5,6 +5,7 @@ math/half_exp.cl
math/half_exp10.cl
math/half_exp2.cl
math/half_log.cl
+math/half_log10.cl
math/half_rsqrt.cl
math/half_sqrt.cl
math/nextafter.cl
diff --git a/libclc/amdgpu/lib/math/half_log10.cl b/libclc/amdgpu/lib/math/half_log10.cl
new file mode 100644
index 000000000000..34fc978c6c45
--- /dev/null
+++ b/libclc/amdgpu/lib/math/half_log10.cl
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+
+#define __CLC_FUNC log10
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>