summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8d5160219cd..c86b2ec3f21 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 00000000000..34fc978c6c4
--- /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>
OpenPOWER on IntegriCloud