6.17.8 Limits of Fixed-Width Integer Types

Macros that specify the minimum and maximum limits of the types with fixed 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.

TypeDescription
INT8_MINMinimum value of signed integer with 8 bits width.
INT8_MAXMaximum value of signed integer with 8 bits width.
UINT8_MAXMaximum value of unsigned integer with 8 bits width.
INT16_MINMinimum value of signed integer with 16 bits width.
INT16_MAXMaximum value of signed integer with 16 bits width.
UINT16_MAXMaximum value of unsigned integer with 16 bits width.
INT24_MINMinimum value of signed integer with 24 bits width (see Attention note).
INT24_MAXMaximum value of signed integer with 24 bits width (see Attention note).
UINT24_MAXMaximum value of unsigned integer with 24 bits width (see Attention note).
INT32_MINMinimum value of signed integer with 32 bits width.
INT32_MAXMaximum value of signed integer with 32 bits width.
UINT32_MAXMaximum value of unsigned integer with 32 bits width.
INT64_MINMinimum value of signed integer with 64 bits width (see Attention note).
INT64_MAXMaximum value of signed integer with 64 bits width (see Attention note).
UINT64_MAXMaximum value of unsigned integer with 64 bits width (see Attention note).