Wednesday, August 31, 2016

C Library Header – stdint

The <stdint.h> header defines exact width integer types.

The <stdint.h> header shall define the following macro constants:

INT8_MIN
INT16_MIN
INT32_MIN
INT64_MIN
minimum value of an object of type int8_t, int16_t, int32_t, int64_t (C99)
INT8_MAX
INT16_MAX
INT32_MAX
INT64_MAX
maximum value of an object of type int8_t, int16_t, int32_t, int64_t(C99)
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINT64_MAX
maximum value of an object of type uint8_t, uint16_t, uint32_t, uint64_t (C99)
INT_FAST8_MIN
INT_FAST16_MIN
INT_FAST32_MIN
INT_FAST64_MIN
minimum value of an object of type int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t (C99)
INT_FAST8_MAX
INT_FAST16_MAX
INT_FAST32_MAX
INT_FAST64_MAX
maximum value of an object of type int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t(C99)
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_FAST64_MAX
maximum value of an object of type uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t (C99)
INT_LEAST8_MIN
INT_LEAST16_MIN
INT_LEAST32_MIN
INT_LEAST64_MIN
minimum value of an object of type int_least8_t, int_least16_t, int_least32_t, int_least64_t (C99)
INT_LEAST8_MAX
INT_LEAST16_MAX
INT_LEAST32_MAX
INT_LEAST64_MAX
maximum value of an object of type int_least8_t, int_least16_t, int_least32_t, int_least64_t(C99)
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
UINT_LEAST64_MAX
maximum value of an object of type uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t(C99)
INTPTR_MIN minimum value of an object of type intptr_t (C99)
INTPTR_MAX maximum value of an object of type intptr_t (C99)
UINTPTR_MAX maximum value of an object of type uintptr_t (C99)
INTMAX_MIN minimum value of an object of type intmax_t (C99)
INTMAX_MAX maximum value of an object of type intmax_t (C99)
UINTMAX_MAX maximum value of an object of type uintmax_t (C99)

The <stdint.h> header shall define the following functions:
INT8_C
INT16_C
INT32_C
INT64_C
expands to an integer constant expression having the value specified by its argument and the type int_least8_t, int_least16_t, int_least32_t, int_least64_t respectively (function macro) (C99)
UINT8_C
UINT16_C
UINT32_C
UINT64_C
expands to an integer constant expression having the value specified by its argument and the type uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t respectively (function macro) (C99)
INTMAX_C expands to an integer constant expression having the value specified by its argument and the type intmax_t (function macro) (C99)
UINTMAX_C expands to an integer constant expression having the value specified by its argument and the type uintmax_t (function macro) (C99)

The <stdint.h> header shall define the following type:
int8_t
int16_t
int32_t
int64_t
signed integer type with width of exactly 8, 16, 32 and 64 bits respectively with no padding bits and using 2's complement for negative values (provided only if the implementation directly supports the type) (C99)
uint8_t
uint16_t
uint32_t
uint64_t
unsigned integer type with width of exactly 8, 16, 32 and 64 bits respectively (provided only if the implementation directly supports the type) (C99)
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
fastest signed integer type with width of at least 8, 16, 32 and 64 bits respectively (C99)
uint_fast8_t
uint_fast16_t
uint_fast32_t uint_fast64_t
fastest unsigned integer type with width of at least 8, 16, 32 and 64 bits respectively (C99)
int_least8_t
int_least16_t
int_least32_t
int_least64_t
smallest signed integer type with width of at least 8, 16, 32 and 64 bits respectively (C99)
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
smallest unsigned integer type with width of at least 8, 16, 32 and 64 bits respectively (C99)
intmax_t maximum width integer type (C99)
uintmax_t maximum width unsigned integer type (C99)
intptr_t integer type capable of holding a pointer (C99)
uintptr_t unsigned integer type capable of holding a pointer (C99)



Related topics:
<setdef.h>   |   <stdio.h>   |   <stdlib.h>   |   <stdnoreturn.h>   |   <string.h>   |   Standard Library in C

List of topics: C Programming

No comments:

Post a Comment