blob: ffb68d67be5f9b8911394e816a13972158c27240 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
H. Peter Anvind13ff312008-04-24 12:56:52 -07002/*
3 * asm-generic/int-ll64.h
4 *
5 * Integer declarations for architectures which use "long long"
6 * for 64-bit types.
7 */
H. Peter Anvind13ff312008-04-24 12:56:52 -07008#ifndef _ASM_GENERIC_INT_LL64_H
9#define _ASM_GENERIC_INT_LL64_H
10
David Howells8a1ab312012-10-04 18:20:15 +010011#include <uapi/asm-generic/int-ll64.h>
Arnd Bergmannc31ae4b2009-05-13 22:56:25 +000012
H. Peter Anvind13ff312008-04-24 12:56:52 -070013
14#ifndef __ASSEMBLY__
15
16typedef signed char s8;
17typedef unsigned char u8;
18
19typedef signed short s16;
20typedef unsigned short u16;
21
22typedef signed int s32;
23typedef unsigned int u32;
24
25typedef signed long long s64;
26typedef unsigned long long u64;
27
H. Peter Anvinc25bd292008-04-24 13:37:33 -070028#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
H. Peter Anvind13ff312008-04-24 12:56:52 -070048#endif /* __ASSEMBLY__ */
49
H. Peter Anvind13ff312008-04-24 12:56:52 -070050#endif /* _ASM_GENERIC_INT_LL64_H */