From ed28c4458a873d496c66ed87a93e3e8d0da21e20 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Tue, 13 Feb 2018 22:09:44 +0000 Subject: amdgpu/half_log2: Switch implementation to native_log2 Reviewer: Tom Stellard Signed-off-by: Jan Vesely llvm-svn: 325060 --- libclc/amdgpu/lib/SOURCES | 1 + libclc/amdgpu/lib/math/half_log2.cl | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 libclc/amdgpu/lib/math/half_log2.cl (limited to 'libclc/amdgpu') diff --git a/libclc/amdgpu/lib/SOURCES b/libclc/amdgpu/lib/SOURCES index c86b2ec..c6dc3bd 100644 --- a/libclc/amdgpu/lib/SOURCES +++ b/libclc/amdgpu/lib/SOURCES @@ -6,6 +6,7 @@ math/half_exp10.cl math/half_exp2.cl math/half_log.cl math/half_log10.cl +math/half_log2.cl math/half_rsqrt.cl math/half_sqrt.cl math/nextafter.cl diff --git a/libclc/amdgpu/lib/math/half_log2.cl b/libclc/amdgpu/lib/math/half_log2.cl new file mode 100644 index 0000000..51645f4 --- /dev/null +++ b/libclc/amdgpu/lib/math/half_log2.cl @@ -0,0 +1,6 @@ +#include + +#define __CLC_FUNC log2 +#define __FLOAT_ONLY +#define __CLC_BODY +#include -- cgit v1.1