[libclc] r325055 - amdgpu/half_exp: Switch implementation to native_exp

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


Author: jvesely
Date: Tue Feb 13 14:09:35 2018
New Revision: 325055

URL: http://llvm.org/viewvc/llvm-project?rev=325055&view=rev
Log:
amdgpu/half_exp: Switch implementation to native_exp

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

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

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




More information about the cfe-commits mailing list