KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1/* KallistiOS ##version##
2
3 arch/dreamcast/include/types.h
4 (c)2000-2001 Megan Potter
5
6*/
7
8/** \file arch/types.h
9 \brief Common integer types.
10 \ingroup system_types
11
12 This file contains typedefs for some common/useful integer types. These
13 types include ones that tell you exactly how long they are, as well as some
14 BSD-isms.
15
16 \author Megan Potter
17*/
18
19#ifndef __ARCH_TYPES_H
20#define __ARCH_TYPES_H
21
22#include <kos/cdefs.h>
23__BEGIN_DECLS
24
25#include <stddef.h>
26
27/** \addtogroup system_types
28 @{
29*/
30
31/* Generic types */
32typedef unsigned long long uint64; /**< \brief 64-bit unsigned integer */
33typedef unsigned long uint32; /**< \brief 32-bit unsigned integer */
34typedef unsigned short uint16; /**< \brief 16-bit unsigned integer */
35typedef unsigned char uint8; /**< \brief 8-bit unsigned integer */
36typedef long long int64; /**< \brief 64-bit signed integer */
37typedef long int32; /**< \brief 32-bit signed integer */
38typedef short int16; /**< \brief 16-bit signed integer */
39typedef char int8; /**< \brief 8-bit signed integer */
40
41/* Volatile types */
42typedef volatile uint64 vuint64; /**< \brief 64-bit volatile unsigned type */
43typedef volatile uint32 vuint32; /**< \brief 32-bit volatile unsigned type */
44typedef volatile uint16 vuint16; /**< \brief 16-bit volatile unsigned type */
45typedef volatile uint8 vuint8; /**< \brief 8-bit volatile unsigned type */
46typedef volatile int64 vint64; /**< \brief 64-bit volatile signed type */
47typedef volatile int32 vint32; /**< \brief 32-bit volatile signed type */
48typedef volatile int16 vint16; /**< \brief 16-bit volatile signed type */
49typedef volatile int8 vint8; /**< \brief 8-bit volatile signed type */
50
51/** @} */
52
53__END_DECLS
54
55#endif /* __ARCH_TYPES_H */
Various common macros used throughout the codebase.
unsigned short uint16
16-bit unsigned integer
Definition types.h:34
unsigned long long uint64
64-bit unsigned integer
Definition types.h:32
short int16
16-bit signed integer
Definition types.h:38
unsigned long uint32
32-bit unsigned integer
Definition types.h:33
long int32
32-bit signed integer
Definition types.h:37
volatile int64 vint64
64-bit volatile signed type
Definition types.h:46
volatile uint16 vuint16
16-bit volatile unsigned type
Definition types.h:44
volatile int8 vint8
8-bit volatile signed type
Definition types.h:49
volatile uint32 vuint32
32-bit volatile unsigned type
Definition types.h:43
volatile uint8 vuint8
8-bit volatile unsigned type
Definition types.h:45
volatile uint64 vuint64
64-bit volatile unsigned type
Definition types.h:42
unsigned char uint8
8-bit unsigned integer
Definition types.h:35
volatile int32 vint32
32-bit volatile signed type
Definition types.h:47
char int8
8-bit signed integer
Definition types.h:39
long long int64
64-bit signed integer
Definition types.h:36
volatile int16 vint16
16-bit volatile signed type
Definition types.h:48