xref: /netbsd-src/sys/arch/riscv/include/int_const.h (revision 10896d74da82f0d98aa3a850bce7e90ce257263a)
1 /* $NetBSD: int_const.h,v 1.3 2025/01/12 09:05:28 skrll Exp $ */
2 
3 #ifndef __INTMAX_C_SUFFIX__
4 
5 #define __INT8_C_SUFFIX__
6 #define __INT16_C_SUFFIX__
7 #define __INT32_C_SUFFIX__
8 #ifdef _LP64
9 #define __INT64_C_SUFFIX__	L
10 #else
11 #define __INT64_C_SUFFIX__	LL
12 #endif
13 
14 #define __UINT8_C_SUFFIX__
15 #define __UINT16_C_SUFFIX__
16 #define __UINT32_C_SUFFIX__	U
17 #ifdef _LP64
18 #define __UINT64_C_SUFFIX__	UL
19 #else
20 #define __UINT64_C_SUFFIX__	ULL
21 #endif
22 
23 #ifdef _LP64
24 #define __INTMAX_C_SUFFIX__	L
25 #define __UINTMAX_C_SUFFIX__	UL
26 #else
27 #define __INTMAX_C_SUFFIX__	LL
28 #define __UINTMAX_C_SUFFIX__	ULL
29 #endif
30 
31 #endif
32 
33 #include <sys/common_int_const.h>
34