1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2014, STMicroelectronics International N.V.
4  */
5 #ifndef __INTTYPES_H
6 #define __INTTYPES_H
7 
8 #include <stdint.h>
9 
10 #ifdef __ILP32__
11 #define __PRI64_PREFIX	"ll"
12 #endif
13 #ifdef __LP64__
14 #define __PRI64_PREFIX	"l"
15 #endif
16 #define __PRIPTR_PREFIX "l"
17 
18 #define PRId8		"d"
19 #define PRId16		"d"
20 #define PRId32		"d"
21 #define PRId64		__PRI64_PREFIX "d"
22 #define PRIdPTR		__PRIPTR_PREFIX "d"
23 
24 #define PRIi8		"i"
25 #define PRIi16		"i"
26 #define PRIi32		"i"
27 #define PRIi64		__PRI64_PREFIX "i"
28 #define PRIiPTR		__PRIPTR_PREFIX "i"
29 
30 #define PRIo8		"o"
31 #define PRIo16		"o"
32 #define PRIo32		"o"
33 #define PRIo64		__PRI64_PREFIX "o"
34 #define PRIoPTR		__PRIPTR_PREFIX "o"
35 
36 #define PRIu8		"u"
37 #define PRIu16		"u"
38 #define PRIu32		"u"
39 #define PRIu64		__PRI64_PREFIX "u"
40 #define PRIuPTR		__PRIPTR_PREFIX "u"
41 
42 #define PRIx8		"x"
43 #define PRIx16		"x"
44 #define PRIx32		"x"
45 #define PRIx64		__PRI64_PREFIX "x"
46 #define PRIxPTR		__PRIPTR_PREFIX "x"
47 
48 #define PRIX8		"X"
49 #define PRIX16		"X"
50 #define PRIX32		"X"
51 #define PRIX64		__PRI64_PREFIX "X"
52 #define PRIXPTR		__PRIPTR_PREFIX "X"
53 
54 #endif /*__INTTYPES_H*/
55