blob: 7451718a61cdbed699bbc1d6d7b5eabf95df2977 [file] [log] [blame]
Masahiro Yamada13592262018-08-06 20:47:39 +09001/* 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
9#ifndef _ASM_GENERIC_INT_LL64_H
10#define _ASM_GENERIC_INT_LL64_H
11
12#ifndef __ASSEMBLY__
13/*
14 * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
15 * header files exported to user space
16 */
17
18typedef __signed__ char __s8;
19typedef unsigned char __u8;
20
21typedef __signed__ short __s16;
22typedef unsigned short __u16;
23
24typedef __signed__ int __s32;
25typedef unsigned int __u32;
26
27#ifdef __GNUC__
28__extension__ typedef __signed__ long long __s64;
29__extension__ typedef unsigned long long __u64;
30#else
31typedef __signed__ long long __s64;
32typedef unsigned long long __u64;
33#endif
34
35typedef __s8 s8;
36typedef __u8 u8;
37typedef __s16 s16;
38typedef __u16 u16;
39typedef __s32 s32;
40typedef __u32 u32;
41typedef __s64 s64;
42typedef __u64 u64;
43
44#endif /* __ASSEMBLY__ */
45
46
47#endif /* _ASM_GENERIC_INT_LL64_H */