The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
stdint.h File Reference

integer types of fixed width. More...

Go to the source code of this file.

Macros

#define INT8_MIN   (-128)
#define INT8_MAX   127
#define UINT8_MAX   255
#define INT16_MIN   (-32768)
#define INT16_MAX   32767
#define UINT16_MAX   65535
#define INT32_MIN   (-2147483647 - 1)
#define INT32_MAX   2147483647
#define UINT32_MAX   4294967295u
#define INT64_MAX   __INT64_MAX__
#define INT64_MIN   (-INT64_MAX - 1)
#define UINT64_MAX   __UINT64_MAX__
#define INTMAX_MAX   __INTMAX_MAX__
#define INTMAX_MIN   (-INTMAX_MAX - 1)
#define UINTMAX_MAX   __UINTMAX_MAX__
#define INT64_C(c)
#define UINT64_C(c)
#define INTPTR_MAX   __INTPTR_MAX__
#define INTPTR_MIN   (-INTPTR_MAX - 1)
#define UINTPTR_MAX   __UINTPTR_MAX__
#define SIZE_MAX   __SIZE_MAX__
#define PTRDIFF_MAX   __PTRDIFF_MAX__
#define PTRDIFF_MIN   (-PTRDIFF_MAX - 1)
#define SIG_ATOMIC_MAX   __SIG_ATOMIC_MAX__
#define SIG_ATOMIC_MIN   __SIG_ATOMIC_MIN__
#define WCHAR_MAX   __WCHAR_MAX__
#define WCHAR_MIN   __WCHAR_MIN__
#define WINT_MAX   __WINT_MAX__
#define WINT_MIN   __WINT_MIN__
#define INT_LEAST8_MAX   __INT_LEAST8_MAX__
#define INT_LEAST8_MIN   (-INT_LEAST8_MAX - 1)
#define UINT_LEAST8_MAX   __UINT_LEAST8_MAX__
#define INT_LEAST16_MAX   __INT_LEAST16_MAX__
#define INT_LEAST16_MIN   (-INT_LEAST16_MAX - 1)
#define UINT_LEAST16_MAX   __UINT_LEAST16_MAX__
#define INT_LEAST32_MAX   __INT_LEAST32_MAX__
#define INT_LEAST32_MIN   (-INT_LEAST32_MAX - 1)
#define UINT_LEAST32_MAX   __UINT_LEAST32_MAX__
#define INT_LEAST64_MAX   __INT_LEAST64_MAX__
#define INT_LEAST64_MIN   (-INT_LEAST64_MAX - 1)
#define UINT_LEAST64_MAX   __UINT_LEAST64_MAX__
#define INT_FAST8_MAX   __INT_FAST8_MAX__
#define INT_FAST8_MIN   (-INT_FAST8_MAX - 1)
#define UINT_FAST8_MAX   __UINT_FAST8_MAX__
#define INT_FAST16_MAX   __INT_FAST16_MAX__
#define INT_FAST16_MIN   (-INT_FAST16_MAX - 1)
#define UINT_FAST16_MAX   __UINT_FAST16_MAX__
#define INT_FAST32_MAX   __INT_FAST32_MAX__
#define INT_FAST32_MIN   (-INT_FAST32_MAX - 1)
#define UINT_FAST32_MAX   __UINT_FAST32_MAX__
#define INT_FAST64_MAX   __INT_FAST64_MAX__
#define INT_FAST64_MIN   (-INT_FAST64_MAX - 1)
#define UINT_FAST64_MAX   __UINT_FAST64_MAX__
#define INT8_C(c)
#define UINT8_C(c)
#define INT16_C(c)
#define UINT16_C(c)
#define INT32_C(c)
#define UINT32_C(c)
#define INTMAX_C(c)
#define UINTMAX_C(c)

Typedefs

typedef signed char int8_t
 fixed-width integer types.
typedef short int16_t
typedef unsigned short uint16_t
typedef int int32_t
typedef __INT64_TYPE__ int64_t
typedef __UINT64_TYPE__ uint64_t
typedef __INTPTR_TYPE__ intptr_t
typedef __UINTPTR_TYPE__ uintptr_t
typedef __INTMAX_TYPE__ intmax_t
typedef __UINTMAX_TYPE__ uintmax_t
typedef __INT_LEAST8_TYPE__ int_least8_t
typedef __UINT_LEAST8_TYPE__ uint_least8_t
typedef __INT_LEAST16_TYPE__ int_least16_t
typedef __UINT_LEAST16_TYPE__ uint_least16_t
typedef __INT_LEAST32_TYPE__ int_least32_t
typedef __UINT_LEAST32_TYPE__ uint_least32_t
typedef __INT_LEAST64_TYPE__ int_least64_t
typedef __UINT_LEAST64_TYPE__ uint_least64_t
typedef __INT_FAST8_TYPE__ int_fast8_t
typedef __UINT_FAST8_TYPE__ uint_fast8_t
typedef __INT_FAST16_TYPE__ int_fast16_t
typedef __UINT_FAST16_TYPE__ uint_fast16_t
typedef __INT_FAST32_TYPE__ int_fast32_t
typedef __UINT_FAST32_TYPE__ uint_fast32_t
typedef __INT_FAST64_TYPE__ int_fast64_t
typedef __UINT_FAST64_TYPE__ uint_fast64_t

Detailed Description

integer types of fixed width.

the types are the compiler's own (INT64_TYPE and so on), so they agree with it on both architectures: int64_t is long long on i686 and long on x86_64.

Macro Definition Documentation

◆ INT8_MIN

#define INT8_MIN   (-128)

◆ INT8_MAX

#define INT8_MAX   127

◆ UINT8_MAX

#define UINT8_MAX   255

◆ INT16_MIN

#define INT16_MIN   (-32768)

◆ INT16_MAX

#define INT16_MAX   32767

◆ UINT16_MAX

#define UINT16_MAX   65535

◆ INT32_MIN

#define INT32_MIN   (-2147483647 - 1)

◆ INT32_MAX

#define INT32_MAX   2147483647

◆ UINT32_MAX

#define UINT32_MAX   4294967295u

◆ INT64_MAX

#define INT64_MAX   __INT64_MAX__

◆ INT64_MIN

#define INT64_MIN   (-INT64_MAX - 1)

◆ UINT64_MAX

#define UINT64_MAX   __UINT64_MAX__

◆ INTMAX_MAX

#define INTMAX_MAX   __INTMAX_MAX__

◆ INTMAX_MIN

#define INTMAX_MIN   (-INTMAX_MAX - 1)

◆ UINTMAX_MAX

#define UINTMAX_MAX   __UINTMAX_MAX__

◆ INT64_C

#define INT64_C ( c)
Value:
__INT64_C(c)

◆ UINT64_C

#define UINT64_C ( c)
Value:
__UINT64_C(c)

◆ INTPTR_MAX

#define INTPTR_MAX   __INTPTR_MAX__

◆ INTPTR_MIN

#define INTPTR_MIN   (-INTPTR_MAX - 1)

◆ UINTPTR_MAX

#define UINTPTR_MAX   __UINTPTR_MAX__

◆ SIZE_MAX

#define SIZE_MAX   __SIZE_MAX__

◆ PTRDIFF_MAX

#define PTRDIFF_MAX   __PTRDIFF_MAX__

◆ PTRDIFF_MIN

#define PTRDIFF_MIN   (-PTRDIFF_MAX - 1)

◆ SIG_ATOMIC_MAX

#define SIG_ATOMIC_MAX   __SIG_ATOMIC_MAX__

◆ SIG_ATOMIC_MIN

#define SIG_ATOMIC_MIN   __SIG_ATOMIC_MIN__

◆ WCHAR_MAX

#define WCHAR_MAX   __WCHAR_MAX__

◆ WCHAR_MIN

#define WCHAR_MIN   __WCHAR_MIN__

◆ WINT_MAX

#define WINT_MAX   __WINT_MAX__

◆ WINT_MIN

#define WINT_MIN   __WINT_MIN__

◆ INT_LEAST8_MAX

#define INT_LEAST8_MAX   __INT_LEAST8_MAX__

◆ INT_LEAST8_MIN

#define INT_LEAST8_MIN   (-INT_LEAST8_MAX - 1)

◆ UINT_LEAST8_MAX

#define UINT_LEAST8_MAX   __UINT_LEAST8_MAX__

◆ INT_LEAST16_MAX

#define INT_LEAST16_MAX   __INT_LEAST16_MAX__

◆ INT_LEAST16_MIN

#define INT_LEAST16_MIN   (-INT_LEAST16_MAX - 1)

◆ UINT_LEAST16_MAX

#define UINT_LEAST16_MAX   __UINT_LEAST16_MAX__

◆ INT_LEAST32_MAX

#define INT_LEAST32_MAX   __INT_LEAST32_MAX__

◆ INT_LEAST32_MIN

#define INT_LEAST32_MIN   (-INT_LEAST32_MAX - 1)

◆ UINT_LEAST32_MAX

#define UINT_LEAST32_MAX   __UINT_LEAST32_MAX__

◆ INT_LEAST64_MAX

#define INT_LEAST64_MAX   __INT_LEAST64_MAX__

◆ INT_LEAST64_MIN

#define INT_LEAST64_MIN   (-INT_LEAST64_MAX - 1)

◆ UINT_LEAST64_MAX

#define UINT_LEAST64_MAX   __UINT_LEAST64_MAX__

◆ INT_FAST8_MAX

#define INT_FAST8_MAX   __INT_FAST8_MAX__

◆ INT_FAST8_MIN

#define INT_FAST8_MIN   (-INT_FAST8_MAX - 1)

◆ UINT_FAST8_MAX

#define UINT_FAST8_MAX   __UINT_FAST8_MAX__

◆ INT_FAST16_MAX

#define INT_FAST16_MAX   __INT_FAST16_MAX__

◆ INT_FAST16_MIN

#define INT_FAST16_MIN   (-INT_FAST16_MAX - 1)

◆ UINT_FAST16_MAX

#define UINT_FAST16_MAX   __UINT_FAST16_MAX__

◆ INT_FAST32_MAX

#define INT_FAST32_MAX   __INT_FAST32_MAX__

◆ INT_FAST32_MIN

#define INT_FAST32_MIN   (-INT_FAST32_MAX - 1)

◆ UINT_FAST32_MAX

#define UINT_FAST32_MAX   __UINT_FAST32_MAX__

◆ INT_FAST64_MAX

#define INT_FAST64_MAX   __INT_FAST64_MAX__

◆ INT_FAST64_MIN

#define INT_FAST64_MIN   (-INT_FAST64_MAX - 1)

◆ UINT_FAST64_MAX

#define UINT_FAST64_MAX   __UINT_FAST64_MAX__

◆ INT8_C

#define INT8_C ( c)
Value:
__INT8_C(c)

◆ UINT8_C

#define UINT8_C ( c)
Value:
__UINT8_C(c)

◆ INT16_C

#define INT16_C ( c)
Value:
__INT16_C(c)

◆ UINT16_C

#define UINT16_C ( c)
Value:
__UINT16_C(c)

◆ INT32_C

#define INT32_C ( c)
Value:
__INT32_C(c)

◆ UINT32_C

#define UINT32_C ( c)
Value:
__UINT32_C(c)

◆ INTMAX_C

#define INTMAX_C ( c)
Value:
__INTMAX_C(c)

◆ UINTMAX_C

#define UINTMAX_C ( c)
Value:
__UINTMAX_C(c)

Typedef Documentation

◆ int8_t

typedef signed char int8_t

fixed-width integer types.

◆ int16_t

typedef short int16_t

◆ uint16_t

typedef unsigned short uint16_t

◆ int32_t

typedef int int32_t

◆ int64_t

typedef __INT64_TYPE__ int64_t

◆ uint64_t

typedef __UINT64_TYPE__ uint64_t

◆ intptr_t

typedef __INTPTR_TYPE__ intptr_t

◆ uintptr_t

typedef __UINTPTR_TYPE__ uintptr_t

◆ intmax_t

typedef __INTMAX_TYPE__ intmax_t

◆ uintmax_t

typedef __UINTMAX_TYPE__ uintmax_t

◆ int_least8_t

typedef __INT_LEAST8_TYPE__ int_least8_t

◆ uint_least8_t

typedef __UINT_LEAST8_TYPE__ uint_least8_t

◆ int_least16_t

typedef __INT_LEAST16_TYPE__ int_least16_t

◆ uint_least16_t

typedef __UINT_LEAST16_TYPE__ uint_least16_t

◆ int_least32_t

typedef __INT_LEAST32_TYPE__ int_least32_t

◆ uint_least32_t

typedef __UINT_LEAST32_TYPE__ uint_least32_t

◆ int_least64_t

typedef __INT_LEAST64_TYPE__ int_least64_t

◆ uint_least64_t

typedef __UINT_LEAST64_TYPE__ uint_least64_t

◆ int_fast8_t

typedef __INT_FAST8_TYPE__ int_fast8_t

◆ uint_fast8_t

typedef __UINT_FAST8_TYPE__ uint_fast8_t

◆ int_fast16_t

typedef __INT_FAST16_TYPE__ int_fast16_t

◆ uint_fast16_t

typedef __UINT_FAST16_TYPE__ uint_fast16_t

◆ int_fast32_t

typedef __INT_FAST32_TYPE__ int_fast32_t

◆ uint_fast32_t

typedef __UINT_FAST32_TYPE__ uint_fast32_t

◆ int_fast64_t

typedef __INT_FAST64_TYPE__ int_fast64_t

◆ uint_fast64_t

typedef __UINT_FAST64_TYPE__ uint_fast64_t