Detailed Description

#include <stdint.h>

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.

Macro Definition Documentation

#define INT16_C(value) value

define a constant of type int16_t

#define INT16_MAX 0x7fff

largest positive value an int16_t can hold.

#define INT16_MIN (-\fBINT16_MAX\fP - 1)

smallest negative value an int16_t can hold.

#define INT32_C(value) __CONCAT(value, L)

define a constant of type int32_t

#define INT32_MAX 0x7fffffffL

largest positive value an int32_t can hold.

#define INT32_MIN (-\fBINT32_MAX\fP - 1L)

smallest negative value an int32_t can hold.

#define INT64_C(value) __CONCAT(value, LL)

define a constant of type int64_t

#define INT64_MAX 0x7fffffffffffffffLL

largest positive value an int64_t can hold.

#define INT64_MIN (-\fBINT64_MAX\fP - 1LL)

smallest negative value an int64_t can hold.

#define INT8_C(value) ((\fBint8_t\fP) value)

define a constant of type int8_t

#define INT8_MAX 0x7f

largest positive value an int8_t can hold.

#define INT8_MIN (-\fBINT8_MAX\fP - 1)

smallest negative value an int8_t can hold.

#define INT_FAST16_MAX \fBINT16_MAX\fP

largest positive value an int_fast16_t can hold.

#define INT_FAST16_MIN \fBINT16_MIN\fP

smallest negative value an int_fast16_t can hold.

#define INT_FAST32_MAX \fBINT32_MAX\fP

largest positive value an int_fast32_t can hold.

#define INT_FAST32_MIN \fBINT32_MIN\fP

smallest negative value an int_fast32_t can hold.

#define INT_FAST64_MAX \fBINT64_MAX\fP

largest positive value an int_fast64_t can hold.

#define INT_FAST64_MIN \fBINT64_MIN\fP

smallest negative value an int_fast64_t can hold.

#define INT_FAST8_MAX \fBINT8_MAX\fP

largest positive value an int_fast8_t can hold.

#define INT_FAST8_MIN \fBINT8_MIN\fP

smallest negative value an int_fast8_t can hold.

#define INT_LEAST16_MAX \fBINT16_MAX\fP

largest positive value an int_least16_t can hold.

#define INT_LEAST16_MIN \fBINT16_MIN\fP

smallest negative value an int_least16_t can hold.

#define INT_LEAST32_MAX \fBINT32_MAX\fP

largest positive value an int_least32_t can hold.

#define INT_LEAST32_MIN \fBINT32_MIN\fP

smallest negative value an int_least32_t can hold.

#define INT_LEAST64_MAX \fBINT64_MAX\fP

largest positive value an int_least64_t can hold.

#define INT_LEAST64_MIN \fBINT64_MIN\fP

smallest negative value an int_least64_t can hold.

#define INT_LEAST8_MAX \fBINT8_MAX\fP

largest positive value an int_least8_t can hold.

#define INT_LEAST8_MIN \fBINT8_MIN\fP

smallest negative value an int_least8_t can hold.

#define INTMAX_C(value) __CONCAT(value, LL)

define a constant of type intmax_t

#define INTMAX_MAX \fBINT64_MAX\fP

largest positive value an intmax_t can hold.

#define INTMAX_MIN \fBINT64_MIN\fP

smallest negative value an intmax_t can hold.

#define INTPTR_MAX \fBINT16_MAX\fP

largest positive value an intptr_t can hold.

#define INTPTR_MIN \fBINT16_MIN\fP

smallest negative value an intptr_t can hold.

#define PTRDIFF_MAX \fBINT16_MAX\fP

largest positive value a ptrdiff_t can hold.

#define PTRDIFF_MIN \fBINT16_MIN\fP

smallest negative value a ptrdiff_t can hold.

#define SIG_ATOMIC_MAX \fBINT8_MAX\fP

largest positive value a sig_atomic_t can hold.

#define SIG_ATOMIC_MIN \fBINT8_MIN\fP

smallest negative value a sig_atomic_t can hold.

#define SIZE_MAX (__CONCAT(\fBINT16_MAX\fP, U))

largest value a size_t can hold.

#define UINT16_C(value) __CONCAT(value, U)

define a constant of type uint16_t

#define UINT16_MAX (__CONCAT(\fBINT16_MAX\fP, U) * 2U + 1U)

largest value an uint16_t can hold.

#define UINT32_C(value) __CONCAT(value, UL)

define a constant of type uint32_t

#define UINT32_MAX (__CONCAT(\fBINT32_MAX\fP, U) * 2UL + 1UL)

largest value an uint32_t can hold.

#define UINT64_C(value) __CONCAT(value, ULL)

define a constant of type uint64_t

#define UINT64_MAX (__CONCAT(\fBINT64_MAX\fP, U) * 2ULL + 1ULL)

largest value an uint64_t can hold.

#define UINT8_C(value) ((\fBuint8_t\fP) __CONCAT(value, U))

define a constant of type uint8_t

#define UINT8_MAX (__CONCAT(\fBINT8_MAX\fP, U) * 2U + 1U)

largest value an uint8_t can hold.

#define UINT_FAST16_MAX \fBUINT16_MAX\fP

largest value an uint_fast16_t can hold.

#define UINT_FAST32_MAX \fBUINT32_MAX\fP

largest value an uint_fast32_t can hold.

#define UINT_FAST64_MAX \fBUINT64_MAX\fP

largest value an uint_fast64_t can hold.

#define UINT_FAST8_MAX \fBUINT8_MAX\fP

largest value an uint_fast8_t can hold.

#define UINT_LEAST16_MAX \fBUINT16_MAX\fP

largest value an uint_least16_t can hold.

#define UINT_LEAST32_MAX \fBUINT32_MAX\fP

largest value an uint_least32_t can hold.

#define UINT_LEAST64_MAX \fBUINT64_MAX\fP

largest value an uint_least64_t can hold.

#define UINT_LEAST8_MAX \fBUINT8_MAX\fP

largest value an uint_least8_t can hold.

#define UINTMAX_C(value) __CONCAT(value, ULL)

define a constant of type uintmax_t

#define UINTMAX_MAX \fBUINT64_MAX\fP

largest value an uintmax_t can hold.

#define UINTPTR_MAX \fBUINT16_MAX\fP

largest value an uintptr_t can hold.

Typedef Documentation

typedef signed int \fBint16_t\fP

16-bit signed type.

typedef signed long int \fBint32_t\fP

32-bit signed type.

typedef signed long long int \fBint64_t\fP

64-bit signed type.

Note:

This type is not available when the compiler option -mint8 is in effect.

typedef signed char \fBint8_t\fP

8-bit signed type.

typedef \fBint16_t\fP \fBint_fast16_t\fP

fastest signed int with at least 16 bits.

typedef \fBint32_t\fP \fBint_fast32_t\fP

fastest signed int with at least 32 bits.

typedef \fBint64_t\fP \fBint_fast64_t\fP

fastest signed int with at least 64 bits.

Note:

This type is not available when the compiler option -mint8 is in effect.

typedef \fBint8_t\fP \fBint_fast8_t\fP

fastest signed int with at least 8 bits.

typedef \fBint16_t\fP \fBint_least16_t\fP

signed int with at least 16 bits.

typedef \fBint32_t\fP \fBint_least32_t\fP

signed int with at least 32 bits.

typedef \fBint64_t\fP \fBint_least64_t\fP

signed int with at least 64 bits.

Note:

This type is not available when the compiler option -mint8 is in effect.

typedef \fBint8_t\fP \fBint_least8_t\fP

signed int with at least 8 bits.

typedef \fBint64_t\fP \fBintmax_t\fP

largest signed int available.

typedef \fBint16_t\fP \fBintptr_t\fP

Signed pointer compatible type.

typedef unsigned int \fBuint16_t\fP

16-bit unsigned type.

typedef unsigned long int \fBuint32_t\fP

32-bit unsigned type.

typedef unsigned long long int \fBuint64_t\fP

64-bit unsigned type.

Note:

This type is not available when the compiler option -mint8 is in effect.

typedef unsigned char \fBuint8_t\fP

8-bit unsigned type.

typedef \fBuint16_t\fP \fBuint_fast16_t\fP

fastest unsigned int with at least 16 bits.

typedef \fBuint32_t\fP \fBuint_fast32_t\fP

fastest unsigned int with at least 32 bits.

typedef \fBuint64_t\fP \fBuint_fast64_t\fP

fastest unsigned int with at least 64 bits.

Note:

This type is not available when the compiler option -mint8 is in effect.

typedef \fBuint8_t\fP \fBuint_fast8_t\fP

fastest unsigned int with at least 8 bits.

typedef \fBuint16_t\fP \fBuint_least16_t\fP

unsigned int with at least 16 bits.

typedef \fBuint32_t\fP \fBuint_least32_t\fP

unsigned int with at least 32 bits.

typedef \fBuint64_t\fP \fBuint_least64_t\fP

unsigned int with at least 64 bits.

Note:

This type is not available when the compiler option -mint8 is in effect.

typedef \fBuint8_t\fP \fBuint_least8_t\fP

unsigned int with at least 8 bits.

typedef \fBuint64_t\fP \fBuintmax_t\fP

largest unsigned int available.

typedef \fBuint16_t\fP \fBuintptr_t\fP

Unsigned pointer compatible type.

Author

Generated automatically by Doxygen for avr-libc from the source code.