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