Sync to v4.15-rc3 for security subsystem developers to work against.
[linux-2.6-microblaze.git] / include / asm-generic / int-ll64.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * asm-generic/int-ll64.h
4  *
5  * Integer declarations for architectures which use "long long"
6  * for 64-bit types.
7  */
8 #ifndef _ASM_GENERIC_INT_LL64_H
9 #define _ASM_GENERIC_INT_LL64_H
10
11 #include <uapi/asm-generic/int-ll64.h>
12
13
14 #ifndef __ASSEMBLY__
15
16 typedef signed char s8;
17 typedef unsigned char u8;
18
19 typedef signed short s16;
20 typedef unsigned short u16;
21
22 typedef signed int s32;
23 typedef unsigned int u32;
24
25 typedef signed long long s64;
26 typedef unsigned long long u64;
27
28 #define S8_C(x)  x
29 #define U8_C(x)  x ## U
30 #define S16_C(x) x
31 #define U16_C(x) x ## U
32 #define S32_C(x) x
33 #define U32_C(x) x ## U
34 #define S64_C(x) x ## LL
35 #define U64_C(x) x ## ULL
36
37 #else /* __ASSEMBLY__ */
38
39 #define S8_C(x)  x
40 #define U8_C(x)  x
41 #define S16_C(x) x
42 #define U16_C(x) x
43 #define S32_C(x) x
44 #define U32_C(x) x
45 #define S64_C(x) x
46 #define U64_C(x) x
47
48 #endif /* __ASSEMBLY__ */
49
50 #endif /* _ASM_GENERIC_INT_LL64_H */