coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
stdint.h File Reference

Go to the source code of this file.

Macros

#define INT8_MIN   ((int8_t)0x80)
 
#define INT8_MAX   ((int8_t)0x7F)
 
#define UINT8_MAX   ((uint8_t)0xFF)
 
#define INT16_MIN   ((int16_t)0x8000)
 
#define INT16_MAX   ((int16_t)0x7FFF)
 
#define UINT16_MAX   ((uint16_t)0xFFFF)
 
#define INT32_MIN   ((int32_t)0x80000000)
 
#define INT32_MAX   ((int32_t)0x7FFFFFFF)
 
#define UINT32_MAX   ((uint32_t)0xFFFFFFFF)
 
#define INT64_MIN   ((int64_t)0x8000000000000000)
 
#define INT64_MAX   ((int64_t)0x7FFFFFFFFFFFFFFF)
 
#define UINT64_MAX   ((uint64_t)0xFFFFFFFFFFFFFFFF)
 
#define INTMAX_MIN   INT64_MIN
 
#define INTMAX_MAX   INT64_MAX
 
#define UINTMAX_MAX   UINT64_MAX
 

Typedefs

typedef signed char int8_t
 
typedef unsigned char uint8_t
 
typedef signed short int16_t
 
typedef unsigned short uint16_t
 
typedef signed int int32_t
 
typedef unsigned int uint32_t
 
typedef signed long long int64_t
 
typedef unsigned long long uint64_t
 
typedef signed long intptr_t
 
typedef unsigned long uintptr_t
 
typedef int64_t intmax_t
 
typedef uint64_t uintmax_t
 
typedef int8_t s8
 
typedef uint8_t u8 = p_inb
 
typedef int16_t s16
 
typedef uint16_t u16 = p_inw
 
typedef int32_t s32
 
typedef uint32_t u32 = p_inl
 
typedef int64_t s64
 
typedef uint64_t u64
 

Functions

 _Static_assert (sizeof(int8_t)==1, "Size of int8_t is incorrect")
 
 _Static_assert (sizeof(uint8_t)==1, "Size of uint8_t is incorrect")
 
 _Static_assert (sizeof(int16_t)==2, "Size of int16_t is incorrect")
 
 _Static_assert (sizeof(uint16_t)==2, "Size of uint16_t is incorrect")
 
 _Static_assert (sizeof(int32_t)==4, "Size of int32_t is incorrect")
 
 _Static_assert (sizeof(uint32_t)==4, "Size of uint32_t is incorrect")
 
 _Static_assert (sizeof(int64_t)==8, "Size of int64_t is incorrect")
 
 _Static_assert (sizeof(uint64_t)==8, "Size of uint64_t is incorrect")
 
 _Static_assert (sizeof(intptr_t)==sizeof(void *), "Size of intptr_t is incorrect")
 
 _Static_assert (sizeof(uintptr_t)==sizeof(void *), "Size of uintptr_t is incorrect")
 

Macro Definition Documentation

◆ INT16_MAX

#define INT16_MAX   ((int16_t)0x7FFF)

Definition at line 62 of file stdint.h.

◆ INT16_MIN

#define INT16_MIN   ((int16_t)0x8000)

Definition at line 61 of file stdint.h.

◆ INT32_MAX

#define INT32_MAX   ((int32_t)0x7FFFFFFF)

Definition at line 66 of file stdint.h.

◆ INT32_MIN

#define INT32_MIN   ((int32_t)0x80000000)

Definition at line 65 of file stdint.h.

◆ INT64_MAX

#define INT64_MAX   ((int64_t)0x7FFFFFFFFFFFFFFF)

Definition at line 70 of file stdint.h.

◆ INT64_MIN

#define INT64_MIN   ((int64_t)0x8000000000000000)

Definition at line 69 of file stdint.h.

◆ INT8_MAX

#define INT8_MAX   ((int8_t)0x7F)

Definition at line 58 of file stdint.h.

◆ INT8_MIN

#define INT8_MIN   ((int8_t)0x80)

Definition at line 57 of file stdint.h.

◆ INTMAX_MAX

#define INTMAX_MAX   INT64_MAX

Definition at line 74 of file stdint.h.

◆ INTMAX_MIN

#define INTMAX_MIN   INT64_MIN

Definition at line 73 of file stdint.h.

◆ UINT16_MAX

#define UINT16_MAX   ((uint16_t)0xFFFF)

Definition at line 63 of file stdint.h.

◆ UINT32_MAX

#define UINT32_MAX   ((uint32_t)0xFFFFFFFF)

Definition at line 67 of file stdint.h.

◆ UINT64_MAX

#define UINT64_MAX   ((uint64_t)0xFFFFFFFFFFFFFFFF)

Definition at line 71 of file stdint.h.

◆ UINT8_MAX

#define UINT8_MAX   ((uint8_t)0xFF)

Definition at line 59 of file stdint.h.

◆ UINTMAX_MAX

#define UINTMAX_MAX   UINT64_MAX

Definition at line 75 of file stdint.h.

Typedef Documentation

◆ int16_t

typedef signed short int16_t

Definition at line 10 of file stdint.h.

◆ int32_t

typedef signed int int32_t

Definition at line 13 of file stdint.h.

◆ int64_t

typedef signed long long int64_t

Definition at line 16 of file stdint.h.

◆ int8_t

typedef signed char int8_t

Definition at line 7 of file stdint.h.

◆ intmax_t

typedef int64_t intmax_t

Definition at line 40 of file stdint.h.

◆ intptr_t

typedef signed long intptr_t

Definition at line 20 of file stdint.h.

◆ s16

typedef int16_t s16

Definition at line 47 of file stdint.h.

◆ s32

typedef int32_t s32

Definition at line 50 of file stdint.h.

◆ s64

typedef int64_t s64

Definition at line 53 of file stdint.h.

◆ s8

typedef int8_t s8

Definition at line 44 of file stdint.h.

◆ u16

Definition at line 48 of file stdint.h.

◆ u32

Definition at line 51 of file stdint.h.

◆ u64

typedef uint64_t u64

Definition at line 54 of file stdint.h.

◆ u8

u8 = p_inb

Definition at line 45 of file stdint.h.

◆ uint16_t

typedef unsigned short uint16_t

Definition at line 11 of file stdint.h.

◆ uint32_t

typedef unsigned int uint32_t

Definition at line 14 of file stdint.h.

◆ uint64_t

typedef unsigned long long uint64_t

Definition at line 17 of file stdint.h.

◆ uint8_t

typedef unsigned char uint8_t

Definition at line 8 of file stdint.h.

◆ uintmax_t

Definition at line 41 of file stdint.h.

◆ uintptr_t

typedef unsigned long uintptr_t

Definition at line 21 of file stdint.h.

Function Documentation

◆ _Static_assert() [1/10]

_Static_assert ( sizeof(int16_t = =2,
"Size of int16_t is incorrect"   
)

◆ _Static_assert() [2/10]

_Static_assert ( sizeof(int32_t = =4,
"Size of int32_t is incorrect"   
)

◆ _Static_assert() [3/10]

_Static_assert ( sizeof(int64_t = =8,
"Size of int64_t is incorrect"   
)

◆ _Static_assert() [4/10]

_Static_assert ( sizeof(int8_t = =1,
"Size of int8_t is incorrect"   
)

◆ _Static_assert() [5/10]

_Static_assert ( sizeof(intptr_t = =sizeof(void *),
"Size of intptr_t is incorrect"   
)

◆ _Static_assert() [6/10]

_Static_assert ( sizeof(uint16_t = =2,
"Size of uint16_t is incorrect"   
)

◆ _Static_assert() [7/10]

_Static_assert ( sizeof(uint32_t = =4,
"Size of uint32_t is incorrect"   
)

◆ _Static_assert() [8/10]

_Static_assert ( sizeof(uint64_t = =8,
"Size of uint64_t is incorrect"   
)

◆ _Static_assert() [9/10]

_Static_assert ( sizeof(uint8_t = =1,
"Size of uint8_t is incorrect"   
)

◆ _Static_assert() [10/10]

_Static_assert ( sizeof(uintptr_t = =sizeof(void *),
"Size of uintptr_t is incorrect"   
)