summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:44 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-11-02 19:48:44 +0000
commitd6ad07687d4195cbdc8a78a3271b2bac23221457 (patch)
treefc312ea39a14dc07a9d60082033ff6dd17356bf7 /libclc/generic/include/clc
parent139185dfc7767c0b263fb67d4d209ce9700747a5 (diff)
downloadbcm5719-llvm-d6ad07687d4195cbdc8a78a3271b2bac23221457.tar.gz
bcm5719-llvm-d6ad07687d4195cbdc8a78a3271b2bac23221457.zip
native_log10: Use unary_decl instead of custom inc file
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-By: Aaron Watry <awatry@gmail.com> llvm-svn: 317251
Diffstat (limited to 'libclc/generic/include/clc')
-rw-r--r--libclc/generic/include/clc/math/native_log10.h8
-rw-r--r--libclc/generic/include/clc/math/native_log10.inc1
2 files changed, 6 insertions, 3 deletions
diff --git a/libclc/generic/include/clc/math/native_log10.h b/libclc/generic/include/clc/math/native_log10.h
index b877efdfac4..3d3c14d2f77 100644
--- a/libclc/generic/include/clc/math/native_log10.h
+++ b/libclc/generic/include/clc/math/native_log10.h
@@ -1,5 +1,9 @@
-#define __CLC_BODY <clc/math/native_log10.inc>
+#define __CLC_BODY <clc/math/unary_decl.inc>
+#define __CLC_FUNCTION native_log10
#define __FLOAT_ONLY
+
#include <clc/math/gentype.inc>
-#undef __CLC_BODY
+
#undef __FLOAT_ONLY
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/native_log10.inc b/libclc/generic/include/clc/math/native_log10.inc
deleted file mode 100644
index ce5a9949714..00000000000
--- a/libclc/generic/include/clc/math/native_log10.inc
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE native_log10(__CLC_GENTYPE a);
OpenPOWER on IntegriCloud