[libclc] 136/291: Add intptr types
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository libclc.
commit b55fc877e8a86585a52177fd9472d17dfb6c3d48
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Fri Jun 13 19:43:18 2014 +0000
Add intptr types
Based on clang's stdint.h
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-by: Tom Stellard <tom at stellard.net>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@210933 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/include/clc/clctypes.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/generic/include/clc/clctypes.h b/generic/include/clc/clctypes.h
index ca729f7..ca1372d 100644
--- a/generic/include/clc/clctypes.h
+++ b/generic/include/clc/clctypes.h
@@ -7,6 +7,18 @@ typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
+#define __stdint_join3(a,b,c) a ## b ## c
+
+#define __intn_t(n) __stdint_join3(__INT, n, _TYPE__)
+#define __uintn_t(n) __stdint_join3(unsigned __INT, n, _TYPE__)
+
+typedef __intn_t(__INTPTR_WIDTH__) intptr_t;
+typedef __uintn_t(__INTPTR_WIDTH__) uintptr_t;
+
+#undef __uintn_t
+#undef __intn_t
+#undef __stdint_join3
+
/* 6.1.2 Built-in Vector Data Types */
typedef __attribute__((ext_vector_type(2))) char char2;
--
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