[Libclc-dev] [PATCH 03/14] native_log10: Switch to generic native intrinsic inc file
Jan Vesely via Libclc-dev
libclc-dev at lists.llvm.org
Fri Nov 3 16:07:15 PDT 2017
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
generic/lib/math/native_log10.cl | 7 ++-----
generic/lib/math/native_log10.inc | 3 ---
2 files changed, 2 insertions(+), 8 deletions(-)
delete mode 100644 generic/lib/math/native_log10.inc
diff --git a/generic/lib/math/native_log10.cl b/generic/lib/math/native_log10.cl
index 9741daa..d69b7b6 100644
--- a/generic/lib/math/native_log10.cl
+++ b/generic/lib/math/native_log10.cl
@@ -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>
diff --git a/generic/lib/math/native_log10.inc b/generic/lib/math/native_log10.inc
deleted file mode 100644
index a2f3d1a..0000000
--- a/generic/lib/math/native_log10.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE native_log10(__CLC_GENTYPE val) {
- return __clc_native_log10(val);
-}
--
2.13.6
More information about the Libclc-dev
mailing list