[Libclc-dev] [PATCH 2/4] math/nextafter: Use custom declaration inc file

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Sun Oct 8 01:55:57 PDT 2017


Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 generic/include/clc/math/nextafter.h   | 5 +----
 generic/include/clc/math/nextafter.inc | 1 +
 2 files changed, 2 insertions(+), 4 deletions(-)
 create mode 100644 generic/include/clc/math/nextafter.inc

diff --git a/generic/include/clc/math/nextafter.h b/generic/include/clc/math/nextafter.h
index 06e1b2a..b6f3204 100644
--- a/generic/include/clc/math/nextafter.h
+++ b/generic/include/clc/math/nextafter.h
@@ -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/generic/include/clc/math/nextafter.inc b/generic/include/clc/math/nextafter.inc
new file mode 100644
index 0000000..67a6116
--- /dev/null
+++ b/generic/include/clc/math/nextafter.inc
@@ -0,0 +1 @@
+_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE nextafter(__CLC_GENTYPE a, __CLC_GENTYPE b);
-- 
2.13.6



More information about the Libclc-dev mailing list