|
Integer types having exactly the specified width
|
| typedef signed char | int8_t |
| typedef unsigned char | uint8_t |
| typedef signed int | int16_t |
| typedef unsigned int | uint16_t |
| typedef signed long int | int32_t |
| typedef unsigned long int | uint32_t |
| typedef signed long long int | int64_t |
| typedef unsigned long long int | uint64_t |
|
Types designating integer data capable of representing any value of any integer type in the corresponding signed or unsigned category
|
| typedef int64_t | intmax_t |
| typedef uint64_t | uintmax_t |
|
C++ implementations should define these macros only when __STDC_CONSTANT_MACROS is defined before <stdint.h> is included.
These definitions are valid for integer constants without suffix and for macros defined as integer constant without suffix
|
| #define | INT8_C(value) |
| #define | UINT8_C(value) |
| #define | INT16_C(value) |
| #define | UINT16_C(value) |
| #define | INT32_C(value) |
| #define | UINT32_C(value) |
| #define | INT64_C(value) |
| #define | UINT64_C(value) |
| #define | INTMAX_C(value) |
| #define | UINTMAX_C(value) |
Use [u]intN_t if you need exactly N bits.
Since these typedefs are mandated by the C99 standard, they are preferred over rolling your own typedefs.
◆ INT16_C
Value:define a constant of type int16_t
◆ INT16_MAX
largest positive value an int16_t can hold.
◆ INT16_MIN
smallest negative value an int16_t can hold.
◆ INT32_C
Value:define a constant of type int32_t
◆ INT32_MAX
| #define INT32_MAX 0x7fffffffL |
largest positive value an int32_t can hold.
◆ INT32_MIN
smallest negative value an int32_t can hold.
◆ INT64_C
Value:define a constant of type int64_t
◆ INT64_MAX
| #define INT64_MAX 0x7fffffffffffffffLL |
largest positive value an int64_t can hold.
◆ INT64_MIN
smallest negative value an int64_t can hold.
◆ INT8_C
Value:
signed char int8_t
Definition stdint.h:78
define a constant of type int8_t
◆ INT8_MAX
largest positive value an int8_t can hold.
◆ INT8_MIN
smallest negative value an int8_t can hold.
◆ INT_FAST16_MAX
◆ INT_FAST16_MIN
◆ INT_FAST32_MAX
◆ INT_FAST32_MIN
◆ INT_FAST64_MAX
◆ INT_FAST64_MIN
◆ INT_FAST8_MAX
◆ INT_FAST8_MIN
◆ INT_LEAST16_MAX
◆ INT_LEAST16_MIN
◆ INT_LEAST32_MAX
◆ INT_LEAST32_MIN
◆ INT_LEAST64_MAX
◆ INT_LEAST64_MIN
◆ INT_LEAST8_MAX
◆ INT_LEAST8_MIN
◆ INTMAX_C
| #define INTMAX_C |
( |
| value | ) |
|
Value:define a constant of type intmax_t
◆ INTMAX_MAX
largest positive value an intmax_t can hold.
◆ INTMAX_MIN
smallest negative value an intmax_t can hold.
◆ INTPTR_MAX
largest positive value an intptr_t can hold.
◆ INTPTR_MIN
smallest negative value an intptr_t can hold.
◆ PTRDIFF_MAX
largest positive value a ptrdiff_t can hold.
◆ PTRDIFF_MIN
smallest negative value a ptrdiff_t can hold.
◆ SIG_ATOMIC_MAX
largest positive value a sig_atomic_t can hold.
◆ SIG_ATOMIC_MIN
smallest negative value a sig_atomic_t can hold.
◆ SIZE_MAX
largest value a size_t can hold.
◆ UINT16_C
| #define UINT16_C |
( |
| value | ) |
|
Value:define a constant of type uint16_t
◆ UINT16_MAX
| #define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2U + 1U) |
◆ UINT32_C
| #define UINT32_C |
( |
| value | ) |
|
Value:define a constant of type uint32_t
◆ UINT32_MAX
| #define UINT32_MAX (__CONCAT(INT32_MAX, U) * 2UL + 1UL) |
◆ UINT64_C
| #define UINT64_C |
( |
| value | ) |
|
Value:define a constant of type uint64_t
◆ UINT64_MAX
| #define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL) |
◆ UINT8_C
Value:
unsigned char uint8_t
Definition stdint.h:83
define a constant of type uint8_t
◆ UINT8_MAX
◆ UINT_FAST16_MAX
◆ UINT_FAST32_MAX
◆ UINT_FAST64_MAX
◆ UINT_FAST8_MAX
◆ UINT_LEAST16_MAX
◆ UINT_LEAST32_MAX
◆ UINT_LEAST64_MAX
◆ UINT_LEAST8_MAX
◆ UINTMAX_C
| #define UINTMAX_C |
( |
| value | ) |
|
◆ UINTMAX_MAX
◆ UINTPTR_MAX
◆ int16_t
◆ int32_t
◆ int64_t
| typedef signed long long int int64_t |
64-bit signed type.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ int8_t
◆ int_fast16_t
fastest signed int with at least 16 bits.
◆ int_fast32_t
fastest signed int with at least 32 bits.
◆ int_fast64_t
fastest signed int with at least 64 bits.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ int_fast8_t
fastest signed int with at least 8 bits.
◆ int_least16_t
signed int with at least 16 bits.
◆ int_least32_t
signed int with at least 32 bits.
◆ int_least64_t
signed int with at least 64 bits.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ int_least8_t
signed int with at least 8 bits.
◆ intmax_t
largest signed int available.
◆ intptr_t
Signed pointer compatible type.
◆ uint16_t
◆ uint32_t
◆ uint64_t
64-bit unsigned type.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ uint8_t
◆ uint_fast16_t
fastest unsigned int with at least 16 bits.
◆ uint_fast32_t
fastest unsigned int with at least 32 bits.
◆ uint_fast64_t
fastest unsigned int with at least 64 bits.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ uint_fast8_t
fastest unsigned int with at least 8 bits.
◆ uint_least16_t
unsigned int with at least 16 bits.
◆ uint_least32_t
unsigned int with at least 32 bits.
◆ uint_least64_t
unsigned int with at least 64 bits.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ uint_least8_t
unsigned int with at least 8 bits.
◆ uintmax_t
largest unsigned int available.
◆ uintptr_t
Unsigned pointer compatible type.