math/nextafter: Use custom declaration inc file
authorJan Vesely <jan.vesely@rutgers.edu>
Sun, 8 Oct 2017 19:33:55 +0000 (19:33 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Sun, 8 Oct 2017 19:33:55 +0000 (19:33 +0000)
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 315189

libclc/generic/include/clc/math/nextafter.h
libclc/generic/include/clc/math/nextafter.inc [new file with mode: 0644]

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