[libclc] r325060 - amdgpu/half_log2: Switch implementation to native_log2

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 13 14:09:44 PST 2018


Author: jvesely
Date: Tue Feb 13 14:09:44 2018
New Revision: 325060

URL: http://llvm.org/viewvc/llvm-project?rev=325060&view=rev
Log:
amdgpu/half_log2: Switch implementation to native_log2

Reviewer: Tom Stellard <tstellar at redhat.com>
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

Added:
    libclc/trunk/amdgpu/lib/math/half_log2.cl
Modified:
    libclc/trunk/amdgpu/lib/SOURCES

Modified: libclc/trunk/amdgpu/lib/SOURCES
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/amdgpu/lib/SOURCES?rev=325060&r1=325059&r2=325060&view=diff
==============================================================================
--- libclc/trunk/amdgpu/lib/SOURCES (original)
+++ libclc/trunk/amdgpu/lib/SOURCES Tue Feb 13 14:09:44 2018
@@ -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

Added: libclc/trunk/amdgpu/lib/math/half_log2.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/amdgpu/lib/math/half_log2.cl?rev=325060&view=auto
==============================================================================
--- libclc/trunk/amdgpu/lib/math/half_log2.cl (added)
+++ libclc/trunk/amdgpu/lib/math/half_log2.cl Tue Feb 13 14:09:44 2018
@@ -0,0 +1,6 @@
+#include <clc/clc.h>
+ 
+#define __CLC_FUNC log2
+#define __FLOAT_ONLY
+#define __CLC_BODY <half_native_unary.inc>
+#include <clc/math/gentype.inc>




More information about the cfe-commits mailing list