Author: jvesely Date: Fri Jun 13 14:43:18 2014 New Revision: 210933 URL: http://llvm.org/viewvc/llvm-project?rev=210933&view=rev Log: Add intptr types
Based on clang's stdint.h Signed-off-by: Jan Vesely <[email protected]> Reviewed-by: Tom Stellard <[email protected]> Modified: libclc/trunk/generic/include/clc/clctypes.h Modified: libclc/trunk/generic/include/clc/clctypes.h URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/clctypes.h?rev=210933&r1=210932&r2=210933&view=diff ============================================================================== --- libclc/trunk/generic/include/clc/clctypes.h (original) +++ libclc/trunk/generic/include/clc/clctypes.h Fri Jun 13 14:43:18 2014 @@ -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; _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
