XenevaOS
Loading...
Searching...
No Matches
Macros | Typedefs
stdint.h File Reference
#include <size_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 __need_wint_t
 
#define __need_wchar_t
 
#define INT8_C(val)   ((int8_t) + (val))
 
#define UINT8_C(val)   ((uint8_t) + (val##U))
 
#define INT16_C(val)   ((int16_t) + (val))
 
#define UINT16_C(val)   ((uint16_t) + (val##U))
 
#define INT32_C(val)   val##L
 
#define UINT32_C(val)   val##UL
 
#define INT64_C(val)   val##LL
 
#define UINT64_C(val)   val##ULL
 
#define INTMAX_C(val)   INT64_C(val)
 
#define UINTMAX_C(val)   UINT64_C(val)
 
#define RAW_OFFSET(type, x, offset)   (type)((size_t)x + offset)
 
#define DIV_ROUND_UP(x, y)    ((x + y - 1) / y)
 
#define ALIGN_UP(x, y)   (DIV_ROUND_UP(x,y)*y)
 
#define NULL   0
 
#define bool   char
 

Typedefs

typedef signed char int8_t
 
typedef unsigned char uint8_t
 
typedef short int16_t
 
typedef unsigned short uint16_t
 
typedef int int32_t
 
typedef unsigned uint32_t
 
typedef long long int64_t
 
typedef unsigned long long uint64_t
 
typedef uint8_t uint8
 
typedef uint16_t uint16
 
typedef uint32_t uint32
 
typedef uint64_t uint64
 
typedef int8_t int8
 
typedef int16_t int16
 
typedef int32_t int32
 
typedef int64_t int64
 
typedef signed char int_least8_t
 
typedef unsigned char uint_least8_t
 
typedef short int_least16_t
 
typedef unsigned short uint_least16_t
 
typedef int int_least32_t
 
typedef unsigned uint_least32_t
 
typedef long long int_least64_t
 
typedef unsigned long long uint_least64_t
 
typedef char int_fast8_t
 
typedef unsigned char uint_fast8_t
 
typedef short int_fast16_t
 
typedef unsigned short uint_fast16_t
 
typedef int int_fast32_t
 
typedef unsigned int uint_fast32_t
 
typedef long long int_fast64_t
 
typedef unsigned long long uint_fast64_t
 
typedef int intptr_t
 
typedef unsigned uintptr_t
 
typedef long long intmax_t
 
typedef unsigned long long uintmax_t
 

Macro Definition Documentation

◆ __need_wchar_t

#define __need_wchar_t

◆ __need_wint_t

#define __need_wint_t

BSD 2-Clause License

Copyright (c) 2021, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ ALIGN_UP

#define ALIGN_UP (   x,
 
)    (DIV_ROUND_UP(x,y)*y)

◆ bool

#define bool   char

◆ DIV_ROUND_UP

#define DIV_ROUND_UP (   x,
 
)     ((x + y - 1) / y)

◆ INT16_C

#define INT16_C (   val)    ((int16_t) + (val))

◆ INT32_C

#define INT32_C (   val)    val##L

◆ INT64_C

#define INT64_C (   val)    val##LL

◆ INT8_C

#define INT8_C (   val)    ((int8_t) + (val))

◆ INTMAX_C

#define INTMAX_C (   val)    INT64_C(val)

◆ NULL

#define NULL   0

◆ RAW_OFFSET

#define RAW_OFFSET (   type,
  x,
  offset 
)    (type)((size_t)x + offset)

◆ UINT16_C

#define UINT16_C (   val)    ((uint16_t) + (val##U))

◆ UINT32_C

#define UINT32_C (   val)    val##UL

◆ UINT64_C

#define UINT64_C (   val)    val##ULL

◆ UINT8_C

#define UINT8_C (   val)    ((uint8_t) + (val##U))

◆ UINTMAX_C

#define UINTMAX_C (   val)    UINT64_C(val)

Typedef Documentation

◆ int16

typedef int16_t int16

◆ int16_t

typedef short int16_t

◆ int32

typedef int32_t int32

◆ int32_t

typedef int int32_t

◆ int64

typedef int64_t int64

◆ int64_t

typedef long long int64_t

◆ int8

typedef int8_t int8

◆ int8_t

typedef signed char int8_t

◆ int_fast16_t

typedef short int_fast16_t

◆ int_fast32_t

typedef int int_fast32_t

◆ int_fast64_t

typedef long long int_fast64_t

◆ int_fast8_t

typedef char int_fast8_t

◆ int_least16_t

typedef short int_least16_t

◆ int_least32_t

typedef int int_least32_t

◆ int_least64_t

typedef long long int_least64_t

◆ int_least8_t

typedef signed char int_least8_t

◆ intmax_t

typedef long long intmax_t

◆ intptr_t

typedef int intptr_t

◆ uint16

typedef uint16_t uint16

◆ uint16_t

typedef unsigned short uint16_t

◆ uint32

typedef uint32_t uint32

◆ uint32_t

typedef unsigned uint32_t

◆ uint64

typedef uint64_t uint64

◆ uint64_t

typedef unsigned long long uint64_t

◆ uint8

typedef uint8_t uint8

◆ uint8_t

typedef unsigned char uint8_t

◆ uint_fast16_t

typedef unsigned short uint_fast16_t

◆ uint_fast32_t

typedef unsigned int uint_fast32_t

◆ uint_fast64_t

typedef unsigned long long uint_fast64_t

◆ uint_fast8_t

typedef unsigned char uint_fast8_t

◆ uint_least16_t

typedef unsigned short uint_least16_t

◆ uint_least32_t

typedef unsigned uint_least32_t

◆ uint_least64_t

typedef unsigned long long uint_least64_t

◆ uint_least8_t

typedef unsigned char uint_least8_t

◆ uintmax_t

typedef unsigned long long uintmax_t

◆ uintptr_t

typedef unsigned uintptr_t