Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
stdint.h File Reference
#include <limits.h>
#include <_types/_int16_t.h>
#include <_types/_int32_t.h>
#include <_types/_int64_t.h>
#include <_types/_int8_t.h>
#include <_types/_uint16_t.h>
#include <_types/_uint32_t.h>
#include <_types/_uint64_t.h>
#include <_types/_uint8_t.h>
#include <_types/_intptr_t.h>
#include <_types/_uintptr_t.h>
#include <_types/_intmax_t.h>
#include <_types/_uintmax_t.h>
Include dependency graph for stdint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __WORDSIZE   32
 
#define INT8_MAX   127
 
#define INT16_MAX   32767
 
#define INT32_MAX   2147483647
 
#define INT64_MAX   9223372036854775807LL
 
#define INT8_MIN   -128
 
#define INT16_MIN   -32768
 
#define INT32_MIN   (-INT32_MAX - 1)
 
#define INT64_MIN   (-INT64_MAX - 1)
 
#define UINT8_MAX   255
 
#define UINT16_MAX   65535
 
#define UINT32_MAX   4294967295U
 
#define UINT64_MAX   18446744073709551615ULL
 
#define INT_LEAST8_MIN   INT8_MIN
 
#define INT_LEAST16_MIN   INT16_MIN
 
#define INT_LEAST32_MIN   INT32_MIN
 
#define INT_LEAST64_MIN   INT64_MIN
 
#define UINT_LEAST8_MIN   UINT8_MIN
 
#define UINT_LEAST16_MIN   UINT16_MIN
 
#define UINT_LEAST32_MIN   UINT32_MIN
 
#define UINT_LEAST64_MIN   UINT64_MIN
 
#define INT_LEAST8_MAX   INT8_MAX
 
#define INT_LEAST16_MAX   INT16_MAX
 
#define INT_LEAST32_MAX   INT32_MAX
 
#define INT_LEAST64_MAX   INT64_MAX
 
#define UINT_LEAST8_MAX   UINT8_MAX
 
#define UINT_LEAST16_MAX   UINT16_MAX
 
#define UINT_LEAST32_MAX   UINT32_MAX
 
#define UINT_LEAST64_MAX   UINT64_MAX
 
#define INT_FAST8_MIN   INT8_MIN
 
#define INT_FAST16_MIN   INT32_MIN
 
#define INT_FAST32_MIN   INT32_MIN
 
#define INT_FAST64_MIN   INT64_MIN
 
#define INT_FAST8_MAX   INT8_MAX
 
#define INT_FAST16_MAX   INT32_MAX
 
#define INT_FAST32_MAX   INT32_MAX
 
#define INT_FAST64_MAX   INT64_MAX
 
#define UINT_FAST8_MIN   UINT8_MIN
 
#define UINT_FAST16_MIN   UINT32_MIN
 
#define UINT_FAST32_MIN   UINT32_MIN
 
#define UINT_FAST64_MIN   UINT64_MIN
 
#define UINT_FAST8_MAX   UINT8_MAX
 
#define UINT_FAST16_MAX   UINT32_MAX
 
#define UINT_FAST32_MAX   UINT32_MAX
 
#define UINT_FAST64_MAX   UINT64_MAX
 
#define INTPTR_MIN   INT32_MIN
 
#define INTPTR_MAX   INT32_MAX
 
#define UINTPTR_MAX   UINT32_MAX
 
#define PTRDIFF_MIN   INT32_MIN
 
#define PTRDIFF_MAX   INT32_MAX
 
#define INTMAX_MIN   INT64_MIN
 
#define INTMAX_MAX   INT64_MAX
 
#define UINTMAX_MAX   UINT64_MAX
 
#define SIZE_MAX   UINT32_MAX
 
#define WCHAR_MAX   0x7fffffff
 
#define WCHAR_MIN   (-WCHAR_MAX - 1)
 
#define WINT_MIN   INT32_MIN
 
#define WINT_MAX   INT32_MAX
 
#define SIG_ATOMIC_MIN   INT32_MIN
 
#define SIG_ATOMIC_MAX   INT32_MAX
 
#define INT8_C(v)   (v)
 
#define INT16_C(v)   (v)
 
#define INT32_C(v)   (v)
 
#define INT64_C(v)   (v##LL)
 
#define UINT8_C(v)   (v##U)
 
#define UINT16_C(v)   (v##U)
 
#define UINT32_C(v)   (v##U)
 
#define UINT64_C(v)   (v##ULL)
 
#define INTMAX_C(v)   (v##LL)
 
#define UINTMAX_C(v)   (v##ULL)
 

Typedefs

typedef int8_t int_least8_t
 
typedef int16_t int_least16_t
 
typedef int32_t int_least32_t
 
typedef int64_t int_least64_t
 
typedef uint8_t uint_least8_t
 
typedef uint16_t uint_least16_t
 
typedef uint32_t uint_least32_t
 
typedef uint64_t uint_least64_t
 
typedef int8_t int_fast8_t
 
typedef int32_t int_fast16_t
 
typedef int32_t int_fast32_t
 
typedef int64_t int_fast64_t
 
typedef uint8_t uint_fast8_t
 
typedef uint32_t uint_fast16_t
 
typedef uint32_t uint_fast32_t
 
typedef uint64_t uint_fast64_t
 

Macro Definition Documentation

◆ __WORDSIZE

#define __WORDSIZE   32

Definition at line 14 of file stdint.h.

◆ INT16_C

#define INT16_C (   v)    (v)

Expands to an integer constant expression having the value specified by its argument and the type int_least16_t

Definition at line 337 of file stdint.h.

◆ INT16_MAX

#define INT16_MAX   32767

Expands to 32767. Maximum value of an object of type int16_t

Definition at line 97 of file stdint.h.

◆ INT16_MIN

#define INT16_MIN   -32768

Expands to -32768. Minimum value of an object of type int16_t

Definition at line 109 of file stdint.h.

◆ INT32_C

#define INT32_C (   v)    (v)

Expands to an integer constant expression having the value specified by its argument and the type int_least32_t

Definition at line 341 of file stdint.h.

◆ INT32_MAX

#define INT32_MAX   2147483647

Expands to 2147483647. Maximum value of an object of type int32_t

Definition at line 100 of file stdint.h.

◆ INT32_MIN

#define INT32_MIN   (-INT32_MAX - 1)

Expands to (-INT32_MAX - 1). Minimum value of an object of type int32_t

Definition at line 117 of file stdint.h.

◆ INT64_C

#define INT64_C (   v)    (v##LL)

Expands to an integer constant expression having the value specified by its argument and the type int_least64_t

Definition at line 345 of file stdint.h.

◆ INT64_MAX

#define INT64_MAX   9223372036854775807LL

Expands to 9223372036854775807LL. Maximum value of an object of type int64_t

Definition at line 103 of file stdint.h.

◆ INT64_MIN

#define INT64_MIN   (-INT64_MAX - 1)

Expands to (-INT64_MAX - 1). Minimum value of an object of type int64_t

Definition at line 120 of file stdint.h.

◆ INT8_C

#define INT8_C (   v)    (v)

Expands to an integer constant expression having the value specified by its argument and the type int_least8_t

Definition at line 333 of file stdint.h.

◆ INT8_MAX

#define INT8_MAX   127

Expands to 127. Maximum value of an object of type int8_t

Definition at line 94 of file stdint.h.

◆ INT8_MIN

#define INT8_MIN   -128

Expands to -128. Minimum value of an object of type int8_t

Definition at line 106 of file stdint.h.

◆ INT_FAST16_MAX

#define INT_FAST16_MAX   INT32_MAX

Maximum value of an object of type int_fast16_t

Definition at line 200 of file stdint.h.

◆ INT_FAST16_MIN

#define INT_FAST16_MIN   INT32_MIN

Minimum value of an object of type int_fast16_t

Definition at line 188 of file stdint.h.

◆ INT_FAST32_MAX

#define INT_FAST32_MAX   INT32_MAX

Maximum value of an object of type int_fast32_t

Definition at line 203 of file stdint.h.

◆ INT_FAST32_MIN

#define INT_FAST32_MIN   INT32_MIN

Minimum value of an object of type int_fast32_t

Definition at line 191 of file stdint.h.

◆ INT_FAST64_MAX

#define INT_FAST64_MAX   INT64_MAX

Maximum value of an object of type int_fast64_t

Definition at line 206 of file stdint.h.

◆ INT_FAST64_MIN

#define INT_FAST64_MIN   INT64_MIN

Minimum value of an object of type int_fast64_t

Definition at line 194 of file stdint.h.

◆ INT_FAST8_MAX

#define INT_FAST8_MAX   INT8_MAX

Maximum value of an object of type int_fast8_t

Definition at line 197 of file stdint.h.

◆ INT_FAST8_MIN

#define INT_FAST8_MIN   INT8_MIN

Minimum value of an object of type int_fast8_t

Definition at line 185 of file stdint.h.

◆ INT_LEAST16_MAX

#define INT_LEAST16_MAX   INT16_MAX

Maximum value of an object of type int_least16_t

Definition at line 163 of file stdint.h.

◆ INT_LEAST16_MIN

#define INT_LEAST16_MIN   INT16_MIN

Minimum value of an object of type int_least16_t

Definition at line 139 of file stdint.h.

◆ INT_LEAST32_MAX

#define INT_LEAST32_MAX   INT32_MAX

Maximum value of an object of type int_least32_t

Definition at line 166 of file stdint.h.

◆ INT_LEAST32_MIN

#define INT_LEAST32_MIN   INT32_MIN

Minimum value of an object of type int_least32_t

Definition at line 142 of file stdint.h.

◆ INT_LEAST64_MAX

#define INT_LEAST64_MAX   INT64_MAX

Maximum value of an object of type int_least64_t

Definition at line 169 of file stdint.h.

◆ INT_LEAST64_MIN

#define INT_LEAST64_MIN   INT64_MIN

Minimum value of an object of type int_least64_t

Definition at line 145 of file stdint.h.

◆ INT_LEAST8_MAX

#define INT_LEAST8_MAX   INT8_MAX

Maximum value of an object of type uint_least8_t

Definition at line 160 of file stdint.h.

◆ INT_LEAST8_MIN

#define INT_LEAST8_MIN   INT8_MIN

Minimum value of an object of type int_least8_t

Definition at line 136 of file stdint.h.

◆ INTMAX_C

#define INTMAX_C (   v)    (v##LL)

Expands to an integer constant expression having the value specified by its argument and the type intmax_t

Definition at line 376 of file stdint.h.

◆ INTMAX_MAX

#define INTMAX_MAX   INT64_MAX

Maximum value of an object of type intmax_t

Definition at line 273 of file stdint.h.

◆ INTMAX_MIN

#define INTMAX_MIN   INT64_MIN

Minimum value of an object of type intmax_t

Definition at line 270 of file stdint.h.

◆ INTPTR_MAX

#define INTPTR_MAX   INT32_MAX

Maximum value of an object of type intptr_t

Definition at line 257 of file stdint.h.

◆ INTPTR_MIN

#define INTPTR_MIN   INT32_MIN

Minimum value of an object of type intptr_t

Definition at line 254 of file stdint.h.

◆ PTRDIFF_MAX

#define PTRDIFF_MAX   INT32_MAX

Maximum value of an object of type ptrdiff_t

Definition at line 266 of file stdint.h.

◆ PTRDIFF_MIN

#define PTRDIFF_MIN   INT32_MIN

Minimum value of an object of type ptrdiff_t

Definition at line 263 of file stdint.h.

◆ SIG_ATOMIC_MAX

#define SIG_ATOMIC_MAX   INT32_MAX

Maximum value of object of sig_atomic_t type

Definition at line 328 of file stdint.h.

◆ SIG_ATOMIC_MIN

#define SIG_ATOMIC_MIN   INT32_MIN

Minimum value of object of sig_atomic_t type

Definition at line 325 of file stdint.h.

◆ SIZE_MAX

#define SIZE_MAX   UINT32_MAX

Maximum value of object of size_t type

Definition at line 279 of file stdint.h.

◆ UINT16_C

#define UINT16_C (   v)    (v##U)

Expands to an integer constant expression having the value specified by its argument and the type uint_least16_t

Definition at line 353 of file stdint.h.

◆ UINT16_MAX

#define UINT16_MAX   65535

Expands to 65535. Maximum value of an object of type uint16_t

Definition at line 126 of file stdint.h.

◆ UINT32_C

#define UINT32_C (   v)    (v##U)

Expands to an integer constant expression having the value specified by its argument and the type uint_least32_t

Definition at line 357 of file stdint.h.

◆ UINT32_MAX

#define UINT32_MAX   4294967295U

Expands to 4294967295U. Maximum value of an object of type uint32_t

Definition at line 129 of file stdint.h.

◆ UINT64_C

#define UINT64_C (   v)    (v##ULL)

Expands to an integer constant expression having the value specified by its argument and the type uint_least64_t

Definition at line 361 of file stdint.h.

◆ UINT64_MAX

#define UINT64_MAX   18446744073709551615ULL

Expands to 18446744073709551615ULL. Maximum value of an object of type uint64_t

Definition at line 132 of file stdint.h.

◆ UINT8_C

#define UINT8_C (   v)    (v##U)

Expands to an integer constant expression having the value specified by its argument and the type uint_least8_t

Definition at line 349 of file stdint.h.

◆ UINT8_MAX

#define UINT8_MAX   255

Expands to 255. Maximum value of an object of type uint8_t

Definition at line 123 of file stdint.h.

◆ UINT_FAST16_MAX

#define UINT_FAST16_MAX   UINT32_MAX

Maximum value of an object of type uint_fast16_t

Definition at line 224 of file stdint.h.

◆ UINT_FAST16_MIN

#define UINT_FAST16_MIN   UINT32_MIN

Minimum value of an object of type uint_fast16_t

Definition at line 212 of file stdint.h.

◆ UINT_FAST32_MAX

#define UINT_FAST32_MAX   UINT32_MAX

Maximum value of an object of type uint_fast32_t

Definition at line 227 of file stdint.h.

◆ UINT_FAST32_MIN

#define UINT_FAST32_MIN   UINT32_MIN

Minimum value of an object of type uint_fast32_t

Definition at line 215 of file stdint.h.

◆ UINT_FAST64_MAX

#define UINT_FAST64_MAX   UINT64_MAX

Maximum value of an object of type uint_fast64_t

Definition at line 230 of file stdint.h.

◆ UINT_FAST64_MIN

#define UINT_FAST64_MIN   UINT64_MIN

Minimum value of an object of type uint_fast64_t

Definition at line 218 of file stdint.h.

◆ UINT_FAST8_MAX

#define UINT_FAST8_MAX   UINT8_MAX

Maximum value of an object of type uint_fast8_t

Definition at line 221 of file stdint.h.

◆ UINT_FAST8_MIN

#define UINT_FAST8_MIN   UINT8_MIN

Minimum value of an object of type uint_fast8_t

Definition at line 209 of file stdint.h.

◆ UINT_LEAST16_MAX

#define UINT_LEAST16_MAX   UINT16_MAX

Maximum value of an object of type uint_least16_t

Definition at line 175 of file stdint.h.

◆ UINT_LEAST16_MIN

#define UINT_LEAST16_MIN   UINT16_MIN

Minimum value of an object of type uint_least16_t

Definition at line 151 of file stdint.h.

◆ UINT_LEAST32_MAX

#define UINT_LEAST32_MAX   UINT32_MAX

Maximum value of an object of type uint_least32_t

Definition at line 178 of file stdint.h.

◆ UINT_LEAST32_MIN

#define UINT_LEAST32_MIN   UINT32_MIN

Minimum value of an object of type uint_least32_t

Definition at line 154 of file stdint.h.

◆ UINT_LEAST64_MAX

#define UINT_LEAST64_MAX   UINT64_MAX

Maximum value of an object of type uint_least64_t

Definition at line 181 of file stdint.h.

◆ UINT_LEAST64_MIN

#define UINT_LEAST64_MIN   UINT64_MIN

Minimum value of an object of type uint_least64_t

Definition at line 157 of file stdint.h.

◆ UINT_LEAST8_MAX

#define UINT_LEAST8_MAX   UINT8_MAX

Maximum value of an object of type uint_least8_t

Definition at line 172 of file stdint.h.

◆ UINT_LEAST8_MIN

#define UINT_LEAST8_MIN   UINT8_MIN

Minimum value of an object of type uint_least8_t

Definition at line 148 of file stdint.h.

◆ UINTMAX_C

#define UINTMAX_C (   v)    (v##ULL)

Expands to an integer constant expression having the value specified by its argument and the type uintmax_t

Definition at line 380 of file stdint.h.

◆ UINTMAX_MAX

#define UINTMAX_MAX   UINT64_MAX

Maximum value of an object of type uintmax_t

Definition at line 276 of file stdint.h.

◆ UINTPTR_MAX

#define UINTPTR_MAX   UINT32_MAX

Maximum value of an object of type uintptr_t

Definition at line 260 of file stdint.h.

◆ WCHAR_MAX

#define WCHAR_MAX   0x7fffffff

Expands to 0x7fffffff. Maximum value of object of wchar_t type

Definition at line 298 of file stdint.h.

◆ WCHAR_MIN

#define WCHAR_MIN   (-WCHAR_MAX - 1)

Expands to (-WCHAR_MAX - 1). Minimum value of object of wchar_t type

Definition at line 314 of file stdint.h.

◆ WINT_MAX

#define WINT_MAX   INT32_MAX

Maximum value of object of wint_t type

Definition at line 322 of file stdint.h.

◆ WINT_MIN

#define WINT_MIN   INT32_MIN

Minimum value of object of wint_t type

Definition at line 319 of file stdint.h.

Typedef Documentation

◆ int_fast16_t

typedef int32_t int_fast16_t

fastest signed integer type with width of at least 16

Definition at line 59 of file stdint.h.

◆ int_fast32_t

typedef int32_t int_fast32_t

fastest signed integer type with width of at least 32

Definition at line 62 of file stdint.h.

◆ int_fast64_t

typedef int64_t int_fast64_t

fastest signed integer type with width of at least 64

Definition at line 65 of file stdint.h.

◆ int_fast8_t

typedef int8_t int_fast8_t

fastest signed integer type with width of at least 8

Definition at line 56 of file stdint.h.

◆ int_least16_t

typedef int16_t int_least16_t

smallest signed integer type with width of at least 16

Definition at line 34 of file stdint.h.

◆ int_least32_t

typedef int32_t int_least32_t

smallest signed integer type with width of at least 32

Definition at line 37 of file stdint.h.

◆ int_least64_t

typedef int64_t int_least64_t

smallest signed integer type with width of at least 64

Definition at line 40 of file stdint.h.

◆ int_least8_t

typedef int8_t int_least8_t

smallest signed integer type with width of at least 8

Definition at line 31 of file stdint.h.

◆ uint_fast16_t

typedef uint32_t uint_fast16_t

fastest unsigned integer type with width of at least 16

Definition at line 71 of file stdint.h.

◆ uint_fast32_t

typedef uint32_t uint_fast32_t

fastest unsigned integer type with width of at least 32

Definition at line 74 of file stdint.h.

◆ uint_fast64_t

typedef uint64_t uint_fast64_t

fastest unsigned integer type with width of at least 64

Definition at line 77 of file stdint.h.

◆ uint_fast8_t

typedef uint8_t uint_fast8_t

fastest unsigned integer type with width of at least 8

Definition at line 68 of file stdint.h.

◆ uint_least16_t

typedef uint16_t uint_least16_t

smallest unsigned integer type with width of at least 16

Definition at line 46 of file stdint.h.

◆ uint_least32_t

typedef uint32_t uint_least32_t

smallest unsigned integer type with width of at least 32

Definition at line 49 of file stdint.h.

◆ uint_least64_t

typedef uint64_t uint_least64_t

smallest unsigned integer type with width of at least 64

Definition at line 52 of file stdint.h.

◆ uint_least8_t

typedef uint8_t uint_least8_t

smallest unsigned integer type with width of at least 8

Definition at line 43 of file stdint.h.