Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
inttypes.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7
8#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_INTTYPES_H_
9#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_INTTYPES_H_
10
11#include <stdint.h>
12
13#define PRId8 "d" /* int8_t */
14#define PRId16 "d" /* int16_t */
15#define PRId32 "d" /* int32_t */
16#define PRId64 "lld" /* int64_t */
17#define PRIdFAST8 "d" /* int_fast8_t */
18#define PRIdFAST16 "d" /* int_fast16_t */
19#define PRIdFAST32 "d" /* int_fast32_t */
20#define PRIdFAST64 "lld" /* int_fast64_t */
21#define PRIdLEAST8 "d" /* int_least8_t */
22#define PRIdLEAST16 "d" /* int_least16_t */
23#define PRIdLEAST32 "d" /* int_least32_t */
24#define PRIdLEAST64 "lld" /* int_least64_t */
25#define PRIdMAX "lld" /* intmax_t */
26#define PRIdPTR "ld" /* intptr_t */
27
28#define PRIi8 "i" /* int8_t */
29#define PRIi16 "i" /* int16_t */
30#define PRIi32 "i" /* int32_t */
31#define PRIi64 "lli" /* int64_t */
32#define PRIiFAST8 "i" /* int_fast8_t */
33#define PRIiFAST16 "i" /* int_fast16_t */
34#define PRIiFAST32 "i" /* int_fast32_t */
35#define PRIiFAST64 "lli" /* int_fast64_t */
36#define PRIiLEAST8 "i" /* int_least8_t */
37#define PRIiLEAST16 "i" /* int_least16_t */
38#define PRIiLEAST32 "i" /* int_least32_t */
39#define PRIiLEAST64 "lli" /* int_least64_t */
40#define PRIiMAX "lli" /* intmax_t */
41#define PRIiPTR "li" /* intptr_t */
42
43#define PRIo8 "o" /* int8_t */
44#define PRIo16 "o" /* int16_t */
45#define PRIo32 "o" /* int32_t */
46#define PRIo64 "llo" /* int64_t */
47#define PRIoFAST8 "o" /* int_fast8_t */
48#define PRIoFAST16 "o" /* int_fast16_t */
49#define PRIoFAST32 "o" /* int_fast32_t */
50#define PRIoFAST64 "llo" /* int_fast64_t */
51#define PRIoLEAST8 "o" /* int_least8_t */
52#define PRIoLEAST16 "o" /* int_least16_t */
53#define PRIoLEAST32 "o" /* int_least32_t */
54#define PRIoLEAST64 "llo" /* int_least64_t */
55#define PRIoMAX "llo" /* intmax_t */
56#define PRIoPTR "lo" /* intptr_t */
57
58#define PRIu8 "u" /* uint8_t */
59#define PRIu16 "u" /* uint16_t */
60#define PRIu32 "u" /* uint32_t */
61#define PRIu64 "llu" /* uint64_t */
62#define PRIuFAST8 "u" /* uint_fast8_t */
63#define PRIuFAST16 "u" /* uint_fast16_t */
64#define PRIuFAST32 "u" /* uint_fast32_t */
65#define PRIuFAST64 "llu" /* uint_fast64_t */
66#define PRIuLEAST8 "u" /* uint_least8_t */
67#define PRIuLEAST16 "u" /* uint_least16_t */
68#define PRIuLEAST32 "u" /* uint_least32_t */
69#define PRIuLEAST64 "llu" /* uint_least64_t */
70#define PRIuMAX "llu" /* uintmax_t */
71#define PRIuPTR "lu" /* uintptr_t */
72
73#define PRIx8 "x" /* uint8_t */
74#define PRIx16 "x" /* uint16_t */
75#define PRIx32 "x" /* uint32_t */
76#define PRIx64 "llx" /* uint64_t */
77#define PRIxFAST8 "x" /* uint_fast8_t */
78#define PRIxFAST16 "x" /* uint_fast16_t */
79#define PRIxFAST32 "x" /* uint_fast32_t */
80#define PRIxFAST64 "llx" /* uint_fast64_t */
81#define PRIxLEAST8 "x" /* uint_least8_t */
82#define PRIxLEAST16 "x" /* uint_least16_t */
83#define PRIxLEAST32 "x" /* uint_least32_t */
84#define PRIxLEAST64 "llx" /* uint_least64_t */
85#define PRIxMAX "llx" /* uintmax_t */
86#define PRIxPTR "lx" /* uintptr_t */
87
88#define PRIX8 "X" /* uint8_t */
89#define PRIX16 "X" /* uint16_t */
90#define PRIX32 "X" /* uint32_t */
91#define PRIX64 "llX" /* uint64_t */
92#define PRIXFAST8 "X" /* uint_fast8_t */
93#define PRIXFAST16 "X" /* uint_fast16_t */
94#define PRIXFAST32 "X" /* uint_fast32_t */
95#define PRIXFAST64 "llX" /* uint_fast64_t */
96#define PRIXLEAST8 "X" /* uint_least8_t */
97#define PRIXLEAST16 "X" /* uint_least16_t */
98#define PRIXLEAST32 "X" /* uint_least32_t */
99#define PRIXLEAST64 "llX" /* uint_least64_t */
100#define PRIXMAX "llX" /* uintmax_t */
101#define PRIXPTR "lX" /* uintptr_t */
102
103#endif