Lazuli
Loading...
Searching...
No Matches
Macros | Typedefs
stdint.h File Reference

Fixed width integer types for x86_64. More...

Go to the source code of this file.

Macros

#define INT8_MIN   ((int8_t)0x80)
 Represents the minimum value of an object of type int8_t.
 
#define INT16_MIN   ((int16_t)0x8000)
 Represents the minimum value of an object of type int16_t.
 
#define INT32_MIN   ((int32_t)0x80000000)
 Represents the minimum value of an object of type int32_t.
 
#define INT64_MIN   ((int64_t)0x8000000000000000)
 Represents the minimum value of an object of type int64_t.
 
#define INT_FAST8_MIN   INT8_MIN
 Represents the minimum value of an object of type int_fast8_t.
 
#define INT_FAST16_MIN   INT16_MIN
 Represents the minimum value of an object of type int_fast16_t.
 
#define INT_FAST32_MIN   INT32_MIN
 Represents the minimum value of an object of type int_fast32_t.
 
#define INT_FAST64_MIN   INT64_MIN
 Represents the minimum value of an object of type int_fast64_t.
 
#define INT_LEAST8_MIN   INT8_MIN
 Represents the minimum value of an object of type int_least8_t.
 
#define INT_LEAST16_MIN   INT16_MIN
 Represents the minimum value of an object of type int_least16_t.
 
#define INT_LEAST32_MIN   INT32_MIN
 Represents the minimum value of an object of type int_least32_t.
 
#define INT_LEAST64_MIN   INT64_MIN
 Represents the minimum value of an object of type int_least64_t.
 
#define INTPTR_MIN   INT64_MIN
 Represents the minimum value of an object of type intptr_t.
 
#define INT8_MAX   ((int8_t)0x7f)
 Represents the maximum value of an object of type int8_t.
 
#define INT16_MAX   ((int16_t)0x7fff)
 Represents the maximum value of an object of type int16_t.
 
#define INT32_MAX   ((int32_t)0x7fffffff)
 Represents the maximum value of an object of type int32_t.
 
#define INT64_MAX   ((int64_t)0x7fffffffffffffff)
 Represents the maximum value of an object of type int64_t.
 
#define INT_FAST8_MAX   INT8_MAX
 Represents the maximum value of an object of type int_fast8_t.
 
#define INT_FAST16_MAX   INT16_MAX
 Represents the maximum value of an object of type int_fast16_t.
 
#define INT_FAST32_MAX   INT32_MAX
 Represents the maximum value of an object of type int_fast32_t.
 
#define INT_FAST64_MAX   INT64_MAX
 Represents the maximum value of an object of type int_fast64_t.
 
#define INT_LEAST8_MAX   INT8_MAX
 Represents the maximum value of an object of type int_least8_t.
 
#define INT_LEAST16_MAX   INT16_MAX
 Represents the maximum value of an object of type int_least16_t.
 
#define INT_LEAST32_MAX   INT32_MAX
 Represents the maximum value of an object of type int_least32_t.
 
#define INT_LEAST64_MAX   INT64_MAX
 Represents the maximum value of an object of type int_least64_t.
 
#define INTPTR_MAX   INT64_MAX
 Represents the maximum value of an object of type intptr_t.
 
#define UINT8_MAX   ((uint8_t)0xff)
 Represents the maximum value of an object of type uint8_t.
 
#define UINT16_MAX   ((uint16_t)0xffff)
 Represents the maximum value of an object of type uint16_t.
 
#define UINT32_MAX   ((uint32_t)0xffffffff)
 Represents the maximum value of an object of type uint32_t.
 
#define UINT64_MAX   ((uint64_t)0xffffffffffffffff)
 Represents the maximum value of an object of type uint64_t.
 
#define UINT_FAST8_MAX   UINT8_MAX
 Represents the maximum value of an object of type uint_fast8_t.
 
#define UINT_FAST16_MAX   UINT16_MAX
 Represents the maximum value of an object of type uint_fast16_t.
 
#define UINT_FAST32_MAX   UINT32_MAX
 Represents the maximum value of an object of type uint_fast32_t.
 
#define UINT_FAST64_MAX   UINT64_MAX
 Represents the maximum value of an object of type uint_fast64_t.
 
#define UINT_LEAST8_MAX   UINT8_MAX
 Represents the maximum value of an object of type uint_least8_t.
 
#define UINT_LEAST16_MAX   UINT16_MAX
 Represents the maximum value of an object of type uint_least16_t.
 
#define UINT_LEAST32_MAX   UINT32_MAX
 Represents the maximum value of an object of type uint_least32_t.
 
#define UINT_LEAST64_MAX   UINT64_MAX
 Represents the maximum value of an object of type uint_least64_t.
 
#define UINTPTR_MAX   UINT64_MAX
 Represents the maximum value of an object of type uinptr_t.
 
#define UINTMAX_MAX   UINT64_MAX
 Represents the maximum value of an object of type uintmax_t.
 
#define INT8_C(X)   ((int_least8_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type int_least8_t.
 
#define INT16_C(X)   ((int_least16_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type int_least16_t.
 
#define INT32_C(X)   ((int_least32_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type int_least32_t.
 
#define INT64_C(X)   ((int_least64_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type int_least64_t.
 
#define INTMAX_C(X)   ((intmax_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type intmax_t.
 
#define UINT8_C(X)   ((uint_least8_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type uint_least8_t.
 
#define UINT16_C(X)   ((uint_least16_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type uint_least16_t.
 
#define UINT32_C(X)   ((uint_least32_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type uint_least32_t.
 
#define UINT64_C(X)   ((uint_least64_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type uint_least64_t.
 
#define UINTMAX_C(X)   ((uintmax_t)(X))
 Expands to an integer constant expression having the value specified by its argument and the type uintmax_t.
 

Typedefs

typedef char int8_t
 Represents a signed integer type with width of exactly 8 bits.
 
typedef short int16_t
 Represents a signed integer type with width of exactly 16 bits.
 
typedef int int32_t
 Represents a signed integer type with width of exactly 32 bits.
 
typedef long int64_t
 Represents a signed integer type with width of exactly 64 bits.
 
typedef char int_fast8_t
 Represents the fastest signed integer type with width of at least 8 bits.
 
typedef short int_fast16_t
 Represents the fastest signed integer type with width of at least 16 bits.
 
typedef int int_fast32_t
 Represents the fastest signed integer type with width of at least 32 bits.
 
typedef long int_fast64_t
 Represents the fastest signed integer type with width of at least 64 bits.
 
typedef unsigned char int_least8_t
 Represents the smallest signed integer type with width of at least 8 bits.
 
typedef unsigned short int_least16_t
 Represents the smallest signed integer type with width of at least 16 bits.
 
typedef unsigned int int_least32_t
 Represents the smallest signed integer type with width of at least 32 bits.
 
typedef unsigned long int_least64_t
 Represents the smallest signed integer type with width of at least 64 bits.
 
typedef int64_t intmax_t
 Represents the maximum width integer type.
 
typedef int64_t intptr_t
 Represents an integer capable of holding a pointer.
 
typedef unsigned char uint8_t
 Represents a unsigned integer type with width of exactly 8 bits.
 
typedef unsigned short uint16_t
 Represents a unsigned integer type with width of exactly 16 bits.
 
typedef unsigned int uint32_t
 Represents a unsigned integer type with width of exactly 32 bits.
 
typedef unsigned long uint64_t
 Represents a unsigned integer type with width of exactly 64 bits.
 
typedef unsigned char uint_fast8_t
 Represents the fastest unsigned integer type with width of at least 8 bits.
 
typedef unsigned short uint_fast16_t
 Represents the fastest unsigned integer type with width of at least 16 bits.
 
typedef unsigned int uint_fast32_t
 Represents the fastest unsigned integer type with width of at least 32 bits.
 
typedef unsigned long uint_fast64_t
 Represents the fastest unsigned integer type with width of at least 64 bits.
 
typedef unsigned char uint_least8_t
 Represents the smallest unsigned integer type with width of at least 8 bits.
 
typedef unsigned short uint_least16_t
 Represents the smallest unsigned integer type with width of at least 16 bits.
 
typedef unsigned int uint_least32_t
 Represents the smallest unsigned integer type with width of at least 32 bits.
 
typedef unsigned long uint_least64_t
 Represents the smallest unsigned integer type with width of at least 64 bits.
 
typedef uint64_t uintmax_t
 Represents the maximum width unsigned integer type.
 
typedef uint64_t uintptr_t
 Represents an unsigned integer capable of holding a pointer.
 

Detailed Description

Fixed width integer types for x86_64.

This file describes the implementation of the stdint.h standard header for defining fixed width integer types for the x86_64 architecture.

This implementation is architecture-dependent.

This implementation is based on : en.cppreference.com/w/c/types/integer pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html

Definition in file stdint.h.

Macro Definition Documentation

◆ INT8_MIN

#define INT8_MIN   ((int8_t)0x80)

Represents the minimum value of an object of type int8_t.

Definition at line 181 of file stdint.h.

◆ INT16_MIN

#define INT16_MIN   ((int16_t)0x8000)

Represents the minimum value of an object of type int16_t.

Definition at line 186 of file stdint.h.

◆ INT32_MIN

#define INT32_MIN   ((int32_t)0x80000000)

Represents the minimum value of an object of type int32_t.

Definition at line 191 of file stdint.h.

◆ INT64_MIN

#define INT64_MIN   ((int64_t)0x8000000000000000)

Represents the minimum value of an object of type int64_t.

Definition at line 196 of file stdint.h.

◆ INT_FAST8_MIN

#define INT_FAST8_MIN   INT8_MIN

Represents the minimum value of an object of type int_fast8_t.

Definition at line 201 of file stdint.h.

◆ INT_FAST16_MIN

#define INT_FAST16_MIN   INT16_MIN

Represents the minimum value of an object of type int_fast16_t.

Definition at line 206 of file stdint.h.

◆ INT_FAST32_MIN

#define INT_FAST32_MIN   INT32_MIN

Represents the minimum value of an object of type int_fast32_t.

Definition at line 211 of file stdint.h.

◆ INT_FAST64_MIN

#define INT_FAST64_MIN   INT64_MIN

Represents the minimum value of an object of type int_fast64_t.

Definition at line 216 of file stdint.h.

◆ INT_LEAST8_MIN

#define INT_LEAST8_MIN   INT8_MIN

Represents the minimum value of an object of type int_least8_t.

Definition at line 221 of file stdint.h.

◆ INT_LEAST16_MIN

#define INT_LEAST16_MIN   INT16_MIN

Represents the minimum value of an object of type int_least16_t.

Definition at line 226 of file stdint.h.

◆ INT_LEAST32_MIN

#define INT_LEAST32_MIN   INT32_MIN

Represents the minimum value of an object of type int_least32_t.

Definition at line 231 of file stdint.h.

◆ INT_LEAST64_MIN

#define INT_LEAST64_MIN   INT64_MIN

Represents the minimum value of an object of type int_least64_t.

Definition at line 236 of file stdint.h.

◆ INTPTR_MIN

#define INTPTR_MIN   INT64_MIN

Represents the minimum value of an object of type intptr_t.

Definition at line 241 of file stdint.h.

◆ INT8_MAX

#define INT8_MAX   ((int8_t)0x7f)

Represents the maximum value of an object of type int8_t.

Definition at line 246 of file stdint.h.

◆ INT16_MAX

#define INT16_MAX   ((int16_t)0x7fff)

Represents the maximum value of an object of type int16_t.

Definition at line 251 of file stdint.h.

◆ INT32_MAX

#define INT32_MAX   ((int32_t)0x7fffffff)

Represents the maximum value of an object of type int32_t.

Definition at line 256 of file stdint.h.

◆ INT64_MAX

#define INT64_MAX   ((int64_t)0x7fffffffffffffff)

Represents the maximum value of an object of type int64_t.

Definition at line 261 of file stdint.h.

◆ INT_FAST8_MAX

#define INT_FAST8_MAX   INT8_MAX

Represents the maximum value of an object of type int_fast8_t.

Definition at line 266 of file stdint.h.

◆ INT_FAST16_MAX

#define INT_FAST16_MAX   INT16_MAX

Represents the maximum value of an object of type int_fast16_t.

Definition at line 271 of file stdint.h.

◆ INT_FAST32_MAX

#define INT_FAST32_MAX   INT32_MAX

Represents the maximum value of an object of type int_fast32_t.

Definition at line 276 of file stdint.h.

◆ INT_FAST64_MAX

#define INT_FAST64_MAX   INT64_MAX

Represents the maximum value of an object of type int_fast64_t.

Definition at line 281 of file stdint.h.

◆ INT_LEAST8_MAX

#define INT_LEAST8_MAX   INT8_MAX

Represents the maximum value of an object of type int_least8_t.

Definition at line 286 of file stdint.h.

◆ INT_LEAST16_MAX

#define INT_LEAST16_MAX   INT16_MAX

Represents the maximum value of an object of type int_least16_t.

Definition at line 291 of file stdint.h.

◆ INT_LEAST32_MAX

#define INT_LEAST32_MAX   INT32_MAX

Represents the maximum value of an object of type int_least32_t.

Definition at line 296 of file stdint.h.

◆ INT_LEAST64_MAX

#define INT_LEAST64_MAX   INT64_MAX

Represents the maximum value of an object of type int_least64_t.

Definition at line 301 of file stdint.h.

◆ INTPTR_MAX

#define INTPTR_MAX   INT64_MAX

Represents the maximum value of an object of type intptr_t.

Definition at line 306 of file stdint.h.

◆ UINT8_MAX

#define UINT8_MAX   ((uint8_t)0xff)

Represents the maximum value of an object of type uint8_t.

Definition at line 311 of file stdint.h.

◆ UINT16_MAX

#define UINT16_MAX   ((uint16_t)0xffff)

Represents the maximum value of an object of type uint16_t.

Definition at line 316 of file stdint.h.

◆ UINT32_MAX

#define UINT32_MAX   ((uint32_t)0xffffffff)

Represents the maximum value of an object of type uint32_t.

Definition at line 321 of file stdint.h.

◆ UINT64_MAX

#define UINT64_MAX   ((uint64_t)0xffffffffffffffff)

Represents the maximum value of an object of type uint64_t.

Definition at line 326 of file stdint.h.

◆ UINT_FAST8_MAX

#define UINT_FAST8_MAX   UINT8_MAX

Represents the maximum value of an object of type uint_fast8_t.

Definition at line 331 of file stdint.h.

◆ UINT_FAST16_MAX

#define UINT_FAST16_MAX   UINT16_MAX

Represents the maximum value of an object of type uint_fast16_t.

Definition at line 336 of file stdint.h.

◆ UINT_FAST32_MAX

#define UINT_FAST32_MAX   UINT32_MAX

Represents the maximum value of an object of type uint_fast32_t.

Definition at line 341 of file stdint.h.

◆ UINT_FAST64_MAX

#define UINT_FAST64_MAX   UINT64_MAX

Represents the maximum value of an object of type uint_fast64_t.

Definition at line 346 of file stdint.h.

◆ UINT_LEAST8_MAX

#define UINT_LEAST8_MAX   UINT8_MAX

Represents the maximum value of an object of type uint_least8_t.

Definition at line 351 of file stdint.h.

◆ UINT_LEAST16_MAX

#define UINT_LEAST16_MAX   UINT16_MAX

Represents the maximum value of an object of type uint_least16_t.

Definition at line 356 of file stdint.h.

◆ UINT_LEAST32_MAX

#define UINT_LEAST32_MAX   UINT32_MAX

Represents the maximum value of an object of type uint_least32_t.

Definition at line 361 of file stdint.h.

◆ UINT_LEAST64_MAX

#define UINT_LEAST64_MAX   UINT64_MAX

Represents the maximum value of an object of type uint_least64_t.

Definition at line 366 of file stdint.h.

◆ UINTPTR_MAX

#define UINTPTR_MAX   UINT64_MAX

Represents the maximum value of an object of type uinptr_t.

Definition at line 371 of file stdint.h.

◆ UINTMAX_MAX

#define UINTMAX_MAX   UINT64_MAX

Represents the maximum value of an object of type uintmax_t.

Definition at line 376 of file stdint.h.

◆ INT8_C

#define INT8_C (   X)    ((int_least8_t)(X))

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

Definition at line 382 of file stdint.h.

◆ INT16_C

#define INT16_C (   X)    ((int_least16_t)(X))

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

Definition at line 388 of file stdint.h.

◆ INT32_C

#define INT32_C (   X)    ((int_least32_t)(X))

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

Definition at line 394 of file stdint.h.

◆ INT64_C

#define INT64_C (   X)    ((int_least64_t)(X))

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

Definition at line 400 of file stdint.h.

◆ INTMAX_C

#define INTMAX_C (   X)    ((intmax_t)(X))

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

Definition at line 406 of file stdint.h.

◆ UINT8_C

#define UINT8_C (   X)    ((uint_least8_t)(X))

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

Definition at line 412 of file stdint.h.

◆ UINT16_C

#define UINT16_C (   X)    ((uint_least16_t)(X))

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

Definition at line 418 of file stdint.h.

◆ UINT32_C

#define UINT32_C (   X)    ((uint_least32_t)(X))

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

Definition at line 424 of file stdint.h.

◆ UINT64_C

#define UINT64_C (   X)    ((uint_least64_t)(X))

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

Definition at line 430 of file stdint.h.

◆ UINTMAX_C

#define UINTMAX_C (   X)    ((uintmax_t)(X))

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

Definition at line 436 of file stdint.h.

Typedef Documentation

◆ int8_t

typedef char int8_t

Represents a signed integer type with width of exactly 8 bits.

Definition at line 27 of file stdint.h.

◆ int16_t

typedef short int16_t

Represents a signed integer type with width of exactly 16 bits.

Definition at line 32 of file stdint.h.

◆ int32_t

typedef int int32_t

Represents a signed integer type with width of exactly 32 bits.

Definition at line 37 of file stdint.h.

◆ int64_t

typedef long int64_t

Represents a signed integer type with width of exactly 64 bits.

Definition at line 42 of file stdint.h.

◆ int_fast8_t

typedef char int_fast8_t

Represents the fastest signed integer type with width of at least 8 bits.

Definition at line 47 of file stdint.h.

◆ int_fast16_t

typedef short int_fast16_t

Represents the fastest signed integer type with width of at least 16 bits.

Definition at line 52 of file stdint.h.

◆ int_fast32_t

typedef int int_fast32_t

Represents the fastest signed integer type with width of at least 32 bits.

Definition at line 57 of file stdint.h.

◆ int_fast64_t

typedef long int_fast64_t

Represents the fastest signed integer type with width of at least 64 bits.

Definition at line 62 of file stdint.h.

◆ int_least8_t

typedef unsigned char int_least8_t

Represents the smallest signed integer type with width of at least 8 bits.

Definition at line 67 of file stdint.h.

◆ int_least16_t

typedef unsigned short int_least16_t

Represents the smallest signed integer type with width of at least 16 bits.

Definition at line 72 of file stdint.h.

◆ int_least32_t

typedef unsigned int int_least32_t

Represents the smallest signed integer type with width of at least 32 bits.

Definition at line 77 of file stdint.h.

◆ int_least64_t

typedef unsigned long int_least64_t

Represents the smallest signed integer type with width of at least 64 bits.

Definition at line 82 of file stdint.h.

◆ intmax_t

typedef int64_t intmax_t

Represents the maximum width integer type.

Represents a signed integer type capable of representing any value of any signed integer type.

Definition at line 90 of file stdint.h.

◆ intptr_t

typedef int64_t intptr_t

Represents an integer capable of holding a pointer.

Represents a signed integer type with the property that any valid pointer to void can be converted to this type, then converted back to a pointer to void, and the result will compare equal to the original pointer.

Definition at line 99 of file stdint.h.

◆ uint8_t

typedef unsigned char uint8_t

Represents a unsigned integer type with width of exactly 8 bits.

Definition at line 104 of file stdint.h.

◆ uint16_t

typedef unsigned short uint16_t

Represents a unsigned integer type with width of exactly 16 bits.

Definition at line 109 of file stdint.h.

◆ uint32_t

typedef unsigned int uint32_t

Represents a unsigned integer type with width of exactly 32 bits.

Definition at line 114 of file stdint.h.

◆ uint64_t

typedef unsigned long uint64_t

Represents a unsigned integer type with width of exactly 64 bits.

Definition at line 119 of file stdint.h.

◆ uint_fast8_t

typedef unsigned char uint_fast8_t

Represents the fastest unsigned integer type with width of at least 8 bits.

Definition at line 124 of file stdint.h.

◆ uint_fast16_t

typedef unsigned short uint_fast16_t

Represents the fastest unsigned integer type with width of at least 16 bits.

Definition at line 129 of file stdint.h.

◆ uint_fast32_t

typedef unsigned int uint_fast32_t

Represents the fastest unsigned integer type with width of at least 32 bits.

Definition at line 134 of file stdint.h.

◆ uint_fast64_t

typedef unsigned long uint_fast64_t

Represents the fastest unsigned integer type with width of at least 64 bits.

Definition at line 139 of file stdint.h.

◆ uint_least8_t

typedef unsigned char uint_least8_t

Represents the smallest unsigned integer type with width of at least 8 bits.

Definition at line 144 of file stdint.h.

◆ uint_least16_t

typedef unsigned short uint_least16_t

Represents the smallest unsigned integer type with width of at least 16 bits.

Definition at line 149 of file stdint.h.

◆ uint_least32_t

typedef unsigned int uint_least32_t

Represents the smallest unsigned integer type with width of at least 32 bits.

Definition at line 154 of file stdint.h.

◆ uint_least64_t

typedef unsigned long uint_least64_t

Represents the smallest unsigned integer type with width of at least 64 bits.

Definition at line 159 of file stdint.h.

◆ uintmax_t

Represents the maximum width unsigned integer type.

Represents an unsigned integer type capable of representing any value of any unsigned integer type.

Definition at line 167 of file stdint.h.

◆ uintptr_t

Represents an unsigned integer capable of holding a pointer.

Represents an unsigned integer type with the property that any valid pointer to void can be converted to this type, then converted back to a pointer to void, and the result will compare equal to the original pointer.

Definition at line 176 of file stdint.h.