QP/C  6.6.0
stdint.h
Go to the documentation of this file.
1 
17 #ifndef STDINT_H
18 #define STDINT_H
19 
20 /*lint -save */
21 /*lint -e1960 MISRA-C++:2008 Rule 17-0-2, Re-use of C++ identifier */
22 
23 /* Exact-width types. WG14/N843 C99 Standard, Section 7.18.1.1 */
24 typedef signed char int8_t;
25 typedef signed short int16_t;
26 typedef signed long int32_t;
27 typedef signed long long int64_t;
29 typedef unsigned char uint8_t;
30 typedef unsigned short uint16_t;
31 typedef unsigned long uint32_t;
32 typedef unsigned long long uint64_t;
34 /* Fastest minimum-width types. WG14/N843 C99 Standard, Section 7.18.1.3 */
35 typedef signed int int_fast8_t;
36 typedef unsigned int uint_fast8_t;
37 typedef signed int int_fast16_t;
38 typedef unsigned int uint_fast16_t;
39 typedef signed long int_fast32_t;
40 typedef unsigned long uint_fast32_t;
42 /*lint -e961 MISRA-C:2004 Rule 19.7, Function-like macro defined */
43 #ifndef UINT8_C
44 #define UINT8_C(x_) ((uint8_t)(x_))
45 #endif
46 
47 #ifndef INT8_C
48 #define INT8_C(x_) ((int8_t)(x_))
49 #endif
50 
51 #ifndef UINT_FAST8_C
52 #define UINT_FAST8_C(x_) ((uint_fast8_t)(x_))
53 #endif
54 
55 #ifndef INT_FAST8_C
56 #define INT_FAST8_C(x_) ((int_fast8_t)(x_))
57 #endif
58 
59 #ifndef UINT16_C
60 #define UINT16_C(x_) ((uint16_t)(x_))
61 #endif
62 
63 #ifndef INT16_C
64 #define INT16_C(x_) ((int16_t)(x_))
65 #endif
66 
67 #ifndef UINT_FAST16_C
68 #define UINT_FAST16_C(x_) ((uint_fast16_t)(x_))
69 #endif
70 
71 #ifndef UINT32_C
72 #define UINT32_C(x_) ((uint32_t)(x_))
73 #endif
74 
75 #ifndef INT32_C
76 #define INT32_C(x_) ((int32_t)(x_))
77 #endif
78 
79 #ifndef UINT_FAST32_C
80 #define UINT_FAST32_C(x_) ((uint_fast32_t)(x_))
81 #endif
82 
83 /*lint -restore */
84 
85 #endif /* STDINT_H */
86 
int32_t
signed long int32_t
exact-width 32-bit signed int
Definition: stdint.h:26
uint8_t
unsigned char uint8_t
exact-width 8-bit unsigned int
Definition: stdint.h:29
int8_t
signed char int8_t
exact-width 8-bit signed int
Definition: stdint.h:24
uint16_t
unsigned short uint16_t
exact-width 16-bit unsigned int
Definition: stdint.h:30
int_fast8_t
signed int int_fast8_t
fast at-least 8-bit signed int
Definition: stdint.h:35
int_fast32_t
signed long int_fast32_t
fast at-least 32-bit signed int
Definition: stdint.h:39
int64_t
signed long long int64_t
exact-width 64-bit signed int
Definition: stdint.h:27
int16_t
signed short int16_t
exact-width 16-bit signed int
Definition: stdint.h:25
uint64_t
unsigned long long uint64_t
exact-width 64-bit unsigned int
Definition: stdint.h:32
uint_fast32_t
unsigned long uint_fast32_t
fast at-least 32-bit unsigned int
Definition: stdint.h:40
uint_fast8_t
unsigned int uint_fast8_t
fast at-least 8-bit unsigned int
Definition: stdint.h:36
int_fast16_t
signed int int_fast16_t
fast at-least 16-bit signed int
Definition: stdint.h:37
uint32_t
unsigned long uint32_t
exact-width 32-bit unsigned int
Definition: stdint.h:31
uint_fast16_t
unsigned int uint_fast16_t
fast at-least 16-bit unsigned int
Definition: stdint.h:38