[libclc] 42/92: math/nextafter: Use custom declaration inc file
Andreas Boll
aboll-guest at moszumanska.debian.org
Mon Nov 6 15:11:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit d7e6160d4270cdfa5e128672639430d1657223e6
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Sun Oct 8 19:33:55 2017 +0000
math/nextafter: Use custom declaration inc file
Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@315189 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/include/clc/math/nextafter.h | 5 +----
generic/include/clc/math/nextafter.inc | 1 +
2 files changed, 2 insertions(+), 4 deletions(-)
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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list