nextafter: Use binary_decl_tt.inc instead of custom inc file.
authorJan Vesely <jan.vesely@rutgers.edu>
Wed, 13 Mar 2019 07:13:30 +0000 (07:13 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Wed, 13 Mar 2019 07:13:30 +0000 (07:13 +0000)
Reviewer: Aaron Watry
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 356026

libclc/generic/include/clc/math/nextafter.h
libclc/generic/include/clc/math/nextafter.inc [deleted file]

index b6f3204..2204ba0 100644 (file)
@@ -1,2 +1,7 @@
-#define __CLC_BODY <clc/math/nextafter.inc>
+#define __CLC_FUNCTION nextafter
+#define __CLC_BODY <clc/math/binary_decl_tt.inc>
+
 #include <clc/math/gentype.inc>
+
+#undef __CLC_BODY
+#undef __CLC_FUNCTION
diff --git a/libclc/generic/include/clc/math/nextafter.inc b/libclc/generic/include/clc/math/nextafter.inc
deleted file mode 100644 (file)
index 67a6116..0000000
+++ /dev/null
@@ -1 +0,0 @@
-_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE nextafter(__CLC_GENTYPE a, __CLC_GENTYPE b);