[libclc] r317934 - native_log10: Switch to generic native intrinsic inc file

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 10 14:16:23 PST 2017


Author: jvesely
Date: Fri Nov 10 14:16:22 2017
New Revision: 317934

URL: http://llvm.org/viewvc/llvm-project?rev=317934&view=rev
Log:
native_log10: Switch to generic native intrinsic inc file

Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

Removed:
    libclc/trunk/generic/lib/math/native_log10.inc
Modified:
    libclc/trunk/generic/lib/math/native_log10.cl

Modified: libclc/trunk/generic/lib/math/native_log10.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/math/native_log10.cl?rev=317934&r1=317933&r2=317934&view=diff
==============================================================================
--- libclc/trunk/generic/lib/math/native_log10.cl (original)
+++ libclc/trunk/generic/lib/math/native_log10.cl Fri Nov 10 14:16:22 2017
@@ -1,10 +1,7 @@
 #include <clc/clc.h>
 
-#define __CLC_FUNCTION __clc_native_log10
-#define __CLC_INTRINSIC "llvm.log10"
-#undef cl_khr_fp64
-#include <clc/math/unary_intrin.inc>
+#define __CLC_NATIVE_INTRINSIC log10
 
-#define __CLC_BODY <native_log10.inc>
+#define __CLC_BODY <native_unary_intrinsic.inc>
 #define __FLOAT_ONLY
 #include <clc/math/gentype.inc>

Removed: libclc/trunk/generic/lib/math/native_log10.inc
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/math/native_log10.inc?rev=317933&view=auto
==============================================================================
--- libclc/trunk/generic/lib/math/native_log10.inc (original)
+++ libclc/trunk/generic/lib/math/native_log10.inc (removed)
@@ -1,3 +0,0 @@
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE native_log10(__CLC_GENTYPE val) {
-  return __clc_native_log10(val);
-}




More information about the cfe-commits mailing list