# 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.

Type Description
INT8_MIN Minimum value of signed integer with 8 bits width.
INT8_MAX Maximum value of signed integer with 8 bits width.
UINT8_MAX Maximum value of unsigned integer with 8 bits width.
INT16_MIN Minimum value of signed integer with 16 bits width.
INT16_MAX Maximum value of signed integer with 16 bits width.
UINT16_MAX Maximum value of unsigned integer with 16 bits width.
INT24_MIN Minimum value of signed integer with 24 bits width (see Attention note).
INT24_MAX Maximum value of signed integer with 24 bits width (see Attention note).
UINT24_MAX Maximum value of unsigned integer with 24 bits width (see Attention note).
INT32_MIN Minimum value of signed integer with 32 bits width.
INT32_MAX Maximum value of signed integer with 32 bits width.
UINT32_MAX Maximum value of unsigned integer with 32 bits width.
INT64_MIN Minimum value of signed integer with 64 bits width (see Attention note).
INT64_MAX Maximum value of signed integer with 64 bits width (see Attention note).
UINT64_MAX Maximum value of unsigned integer with 64 bits width (see Attention note).