H. Peter Anvin | d13ff31 | 2008-04-24 12:56:52 -0700 | [diff] [blame] | 1 | /* |
| 2 | * asm-generic/int-ll64.h |
| 3 | * |
| 4 | * Integer declarations for architectures which use "long long" |
| 5 | * for 64-bit types. |
| 6 | */ |
H. Peter Anvin | d13ff31 | 2008-04-24 12:56:52 -0700 | [diff] [blame] | 7 | #ifndef _ASM_GENERIC_INT_LL64_H |
| 8 | #define _ASM_GENERIC_INT_LL64_H |
| 9 | |
David Howells | 8a1ab31 | 2012-10-04 18:20:15 +0100 | [diff] [blame] | 10 | #include <uapi/asm-generic/int-ll64.h> |
Arnd Bergmann | c31ae4b | 2009-05-13 22:56:25 +0000 | [diff] [blame] | 11 | |
H. Peter Anvin | d13ff31 | 2008-04-24 12:56:52 -0700 | [diff] [blame] | 12 | |
| 13 | #ifndef __ASSEMBLY__ |
| 14 | |
| 15 | typedef signed char s8; |
| 16 | typedef unsigned char u8; |
| 17 | |
| 18 | typedef signed short s16; |
| 19 | typedef unsigned short u16; |
| 20 | |
| 21 | typedef signed int s32; |
| 22 | typedef unsigned int u32; |
| 23 | |
| 24 | typedef signed long long s64; |
| 25 | typedef unsigned long long u64; |
| 26 | |
H. Peter Anvin | c25bd29 | 2008-04-24 13:37:33 -0700 | [diff] [blame] | 27 | #define S8_C(x) x |
| 28 | #define U8_C(x) x ## U |
| 29 | #define S16_C(x) x |
| 30 | #define U16_C(x) x ## U |
| 31 | #define S32_C(x) x |
| 32 | #define U32_C(x) x ## U |
| 33 | #define S64_C(x) x ## LL |
| 34 | #define U64_C(x) x ## ULL |
| 35 | |
| 36 | #else /* __ASSEMBLY__ */ |
| 37 | |
| 38 | #define S8_C(x) x |
| 39 | #define U8_C(x) x |
| 40 | #define S16_C(x) x |
| 41 | #define U16_C(x) x |
| 42 | #define S32_C(x) x |
| 43 | #define U32_C(x) x |
| 44 | #define S64_C(x) x |
| 45 | #define U64_C(x) x |
| 46 | |
H. Peter Anvin | d13ff31 | 2008-04-24 12:56:52 -0700 | [diff] [blame] | 47 | #endif /* __ASSEMBLY__ */ |
| 48 | |
H. Peter Anvin | d13ff31 | 2008-04-24 12:56:52 -0700 | [diff] [blame] | 49 | #endif /* _ASM_GENERIC_INT_LL64_H */ |