6.17.9 Limits of Minimum-Width Integer Types
Macros that specify the minimum and maximum limits of the types with at least the
specified width declared in <stdint.h>
.
Attention: The macros for 24-bit objects are
only supported when using PIC devices and MPLAB XC8. The macros for 64-bit objects are
not supported when using 8-bit AVR, Baseline, or non-enhanced Mid-range PIC devices with
MPLAB XC8.
Include
<stdint.h>
Remarks
Each macro name corresponds to the <stdint.h>
type with a similar
name. The macro will expand to a constant expression suitable for use in
#if
preprocessing directives, and this expression shall have the
same type as an object of the corresponding type converted according to the integer
promotions.
Type | Description |
---|---|
INT_LEAST8_MIN | Minimum value of signed integer with at least at least 8 bits width. |
INT_LEAST8_MAX | Maximum value of signed integer with at least 8 bits width. |
UINT_LEAST8_MAX | Maximum value of unsigned integer with at least 8 bits width. |
INT_LEAST16_MIN | Minimum value of signed integer with at least 16 bits width. |
INT_LEAST16_MAX | Maximum value of signed integer with at least 16 bits width. |
UINT_LEAST16_MAX | Maximum value of unsigned integer with at least 16 bits width. |
INT_LEAST24_MIN | Minimum value of signed integer with at least 24 bits width (see Attention note). |
INT_LEAST24_MAX | Maximum value of signed integer with at least 24 bits width (see Attention note). |
UINT_LEAST24_MAX | Maximum value of unsigned integer with at least 24 bits width (see Attention note). |
INT_LEAST32_MIN | Minimum value of signed integer with at least 32 bits width. |
INT_LEAST32_MAX | Maximum value of signed integer with at least 32 bits width. |
UINT_LEAST32_MAX | Maximum value of unsigned integer with at least 32 bits width. |
INT_LEAST64_MIN | Minimum value of signed integer with at least 64 bits width (see Attention note). |
INT_LEAST64_MAX | Maximum value of signed integer with at least 64 bits width (see Attention note). |
UINT_LEAST64_MAX | Maximum value of unsigned integer with at least 64 bits width (see Attention note). |