|
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) ((int8_t) value) |
| |
| #define | UINT8_C(value) ((uint8_t) __CONCAT(value, U)) |
| |
| #define | INT16_C(value) value |
| |
| #define | UINT16_C(value) __CONCAT(value, U) |
| |
| #define | INT24_C(value) ((int24_t) __CONCAT(value, L)) |
| |
| #define | UINT24_C(value) ((uint24_t) __CONCAT(value, UL)) |
| |
| #define | INT32_C(value) __CONCAT(value, L) |
| |
| #define | UINT32_C(value) __CONCAT(value, UL) |
| |
| #define | INT64_C(value) __CONCAT(value, LL) |
| |
| #define | UINT64_C(value) __CONCAT(value, ULL) |
| |
| #define | INTMAX_C(value) __CONCAT(value, LL) |
| |
| #define | UINTMAX_C(value) __CONCAT(value, ULL) |
| |
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.
- Note
- The 24-bit types and constants are supported since AVR-LibC v2.3. In older versions, they can still be used by means of the compiler built-in types and macros
__int24, __uint24, __INT24_MIN__, __INT24_MAX__ and __UINT24_MAX__ supported since GCC v4.7.
◆ INT16_C
| #define INT16_C |
( |
|
value | ) |
value |
◆ INT16_MAX
Largest positive value an int16_t can hold.
◆ INT16_MIN
Smallest negative value an int16_t can hold.
◆ INT24_C
| #define INT24_C |
( |
|
value | ) |
((int24_t) __CONCAT(value, L)) |
◆ INT24_MAX
| #define INT24_MAX __INT24_MAX__ |
Largest positive value an int24_t can hold.
- Since
- AVR-LibC v2.3, int24
◆ INT24_MIN
| #define INT24_MIN __INT24_MIN__ |
Smallest negative value an int24_t can hold.
- Since
- AVR-LibC v2.3, int24
◆ INT32_C
| #define INT32_C |
( |
|
value | ) |
__CONCAT(value, L) |
◆ 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
| #define INT64_C |
( |
|
value | ) |
__CONCAT(value, LL) |
◆ 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
| #define INT8_C |
( |
|
value | ) |
((int8_t) value) |
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_FAST24_MAX
◆ INT_FAST24_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_LEAST24_MAX
◆ INT_LEAST24_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 | ) |
__CONCAT(value, LL) |
◆ INTMAX_MAX
Largest positive value an intmax_t can hold.
◆ INTMAX_MIN
Smallest negative value an intmax_t can hold.
◆ INTPTR24_MAX
◆ INTPTR24_MIN
◆ 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 | ) |
__CONCAT(value, U) |
◆ UINT16_MAX
| #define UINT16_MAX (__CONCAT(INT16_MAX, U) * 2U + 1U) |
◆ UINT24_C
| #define UINT24_C |
( |
|
value | ) |
((uint24_t) __CONCAT(value, UL)) |
◆ UINT24_MAX
| #define UINT24_MAX __UINT24_MAX__ |
◆ UINT32_C
| #define UINT32_C |
( |
|
value | ) |
__CONCAT(value, UL) |
◆ UINT32_MAX
| #define UINT32_MAX (__CONCAT(INT32_MAX, U) * 2UL + 1UL) |
◆ UINT64_C
| #define UINT64_C |
( |
|
value | ) |
__CONCAT(value, ULL) |
◆ UINT64_MAX
| #define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL) |
◆ UINT8_C
| #define UINT8_C |
( |
|
value | ) |
((uint8_t) __CONCAT(value, U)) |
◆ UINT8_MAX
| #define UINT8_MAX (__CONCAT(INT8_MAX, U) * 2U + 1U) |
◆ UINT_FAST16_MAX
◆ UINT_FAST24_MAX
◆ UINT_FAST32_MAX
◆ UINT_FAST64_MAX
◆ UINT_FAST8_MAX
◆ UINT_LEAST16_MAX
◆ UINT_LEAST24_MAX
◆ UINT_LEAST32_MAX
◆ UINT_LEAST64_MAX
◆ UINT_LEAST8_MAX
◆ UINTMAX_C
| #define UINTMAX_C |
( |
|
value | ) |
__CONCAT(value, ULL) |
◆ UINTMAX_MAX
◆ UINTPTR24_MAX
◆ UINTPTR_MAX
◆ int16_t
16-Bit signed integer type.
◆ int24_t
24-Bit signed integer type.
- Since
- AVR-LibC v2.3, int24
◆ int32_t
32-Bit signed integer type.
◆ int64_t
| typedef signed long long int int64_t |
64-Bit signed integer type.
- Note
- This type is not available when the compiler option
-mint8 is in effect.
◆ int8_t
8-Bit signed integer type.
◆ int_fast16_t
Fastest signed integer type with at least 16 bits.
◆ int_fast24_t
Fastest signed integer type with at least 24 bits.
- Since
- AVR-LibC v2.3, int24
◆ int_fast32_t
Fastest signed integer type with at least 32 bits.
◆ int_fast64_t
Fastest signed integer type with at least 64 bits.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ int_fast8_t
Fastest signed integer type with at least 8 bits.
◆ int_least16_t
Signed integer type with at least 16 bits.
◆ int_least24_t
Signed integer type with at least 24 bits.
- Since
- AVR-LibC v2.3, int24
◆ int_least32_t
Signed integer type with at least 32 bits.
◆ int_least64_t
Signed integer type with at least 64 bits.
- Note
- This type is not available when the compiler option
-mint8 is in effect.
◆ int_least8_t
Signed integer type with at least 8 bits.
◆ intmax_t
Largest signed integer available.
◆ intptr24_t
Signed 24-bit pointer compatible type.
- Since
- AVR-LibC v2.3, int24
◆ intptr_t
Signed pointer compatible type.
◆ uint16_t
16-Bit unsigned integer type.
◆ uint24_t
24-Bit unsigned integer type.
- Since
- AVR-LibC v2.3, int24
◆ uint32_t
32-Bit unsigned integer type.
◆ uint64_t
64-Bit unsigned integer type.
- Note
- This type is not available when the compiler option
-mint8 is in effect.
◆ uint8_t
8-Bit unsigned integer type.
◆ uint_fast16_t
Fastest unsigned integer type with at least 16 bits.
◆ uint_fast24_t
Fastest unsigned integer type with at least 24 bits.
- Since
- AVR-LibC v2.3, int24
◆ uint_fast32_t
Fastest unsigned integer type with at least 32 bits.
◆ uint_fast64_t
Fastest unsigned integer type with at least 64 bits.
- Note
- This type is not available when the compiler option -mint8 is in effect.
◆ uint_fast8_t
Fastest unsigned integer type with at least 8 bits.
◆ uint_least16_t
Unsigned integer type with at least 16 bits.
◆ uint_least24_t
Unsigned integer type with at least 24 bits.
- Since
- AVR-LibC v2.3, int24
◆ uint_least32_t
Unsigned integer type with at least 32 bits.
◆ uint_least64_t
Unsigned integer type with at least 64 bits.
- Note
- This type is not available when the compiler option
-mint8 is in effect.
◆ uint_least8_t
Unsigned integer type with at least 8 bits.
◆ uintmax_t
Largest unsigned integer available.
◆ uintptr24_t
Unsigned 24-bit pointer compatible type.
- Since
- AVR-LibC v2.3, int24
◆ uintptr_t
Unsigned pointer compatible type.