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