native_log10: Switch to generic native intrinsic inc file
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 10 Nov 2017 22:16:22 +0000 (22:16 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Fri, 10 Nov 2017 22:16:22 +0000 (22:16 +0000)
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 317934

libclc/generic/lib/math/native_log10.cl
libclc/generic/lib/math/native_log10.inc [deleted file]

index 9741daa..d69b7b6 100644 (file)
@@ -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/libclc/generic/lib/math/native_log10.inc b/libclc/generic/lib/math/native_log10.inc
deleted file mode 100644 (file)
index a2f3d1a..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-_CLC_OVERLOAD _CLC_DEF __CLC_GENTYPE native_log10(__CLC_GENTYPE val) {
-  return __clc_native_log10(val);
-}