Author: jvesely
Date: Tue Feb 13 14:09:38 2018
New Revision: 325057

URL: http://llvm.org/viewvc/llvm-project?rev=325057&view=rev
Log:
amdgpu/half_exp2: Switch implementation to native_exp2

Reviewer: Tom Stellard <tstel...@redhat.com>
Signed-off-by: Jan Vesely <jan.ves...@rutgers.edu>

Added:
    libclc/trunk/amdgpu/lib/math/half_exp2.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=325057&r1=325056&r2=325057&view=diff
==============================================================================
--- libclc/trunk/amdgpu/lib/SOURCES (original)
+++ libclc/trunk/amdgpu/lib/SOURCES Tue Feb 13 14:09:38 2018
@@ -3,6 +3,7 @@ math/native_log.cl
 math/native_log10.cl
 math/half_exp.cl
 math/half_exp10.cl
+math/half_exp2.cl
 math/half_rsqrt.cl
 math/half_sqrt.cl
 math/nextafter.cl

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


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to