Iros
Loading...
Searching...
No Matches
integers.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/types/ptrdiff_t.h
"
4
#include "
di/types/size_t.h
"
5
#include "
di/types/ssize_t.h
"
6
#include "
di/types/uintptr_t.h
"
7
8
namespace
di::types
{
9
using
u8
= __UINT8_TYPE__;
10
using
u16
= __UINT16_TYPE__;
11
using
u32
= __UINT32_TYPE__;
12
using
u64
= __UINT64_TYPE__;
13
14
using
i8
= __INT8_TYPE__;
15
using
i16
= __INT16_TYPE__;
16
using
i32
= __INT32_TYPE__;
17
using
i64
= __INT64_TYPE__;
18
19
#ifdef __x86_64__
20
#define DI_HAVE_128_BIT_INTEGERS
21
using
u128 = __uint128_t;
22
using
i128 = __int128_t;
23
#endif
24
25
#ifdef DI_HAVE_128_BIT_INTEGERS
26
using
intmax_t
= i128;
27
using
uintmax_t
= u128;
28
#else
29
using
intmax_t
=
i64
;
30
using
uintmax_t
=
u64
;
31
#endif
32
33
using
usize
=
size_t
;
34
using
isize
=
ssize_t
;
35
36
using
uptr
=
uintptr_t
;
37
using
iptr
=
ptrdiff_t
;
38
39
using
umax
=
uintmax_t
;
40
using
imax
=
intmax_t
;
41
}
42
43
namespace
di
{
44
#ifdef DI_HAVE_128_BIT_INTEGERS
45
using
types::i128;
46
using
types::u128;
47
#endif
48
49
using
types::i16
;
50
using
types::i32
;
51
using
types::i64
;
52
using
types::i8
;
53
using
types::u16
;
54
using
types::u32
;
55
using
types::u64
;
56
using
types::u8
;
57
58
using
types::imax
;
59
using
types::iptr
;
60
using
types::isize
;
61
using
types::umax
;
62
using
types::uptr
;
63
using
types::usize
;
64
}
65
66
#if !defined(DI_NO_GLOBALS) && !defined(DI_NO_GLOBAL_TYPES)
67
using
di::i16
;
68
using
di::i32
;
69
using
di::i64
;
70
using
di::i8
;
71
using
di::imax
;
72
using
di::iptr
;
73
using
di::isize
;
74
using
di::u16
;
75
using
di::u32
;
76
using
di::u64
;
77
using
di::u8
;
78
using
di::umax
;
79
using
di::uptr
;
80
using
di::usize
;
81
82
#ifdef DI_HAVE_128_BIT_INTEGERS
83
using
di::i128;
84
using
di::u128;
85
#endif
86
#endif
size_t.h
ssize_t.h
di::types
Definition
method.h:5
di::types::uintptr_t
__UINTPTR_TYPE__ uintptr_t
Definition
uintptr_t.h:4
di::types::isize
ssize_t isize
Definition
integers.h:34
di::types::i16
__INT16_TYPE__ i16
Definition
integers.h:15
di::types::usize
size_t usize
Definition
integers.h:33
di::types::uptr
uintptr_t uptr
Definition
integers.h:36
di::types::u64
__UINT64_TYPE__ u64
Definition
integers.h:12
di::types::i8
__INT8_TYPE__ i8
Definition
integers.h:14
di::types::ssize_t
ptrdiff_t ssize_t
Definition
ssize_t.h:6
di::types::umax
uintmax_t umax
Definition
integers.h:39
di::types::intmax_t
i64 intmax_t
Definition
integers.h:29
di::types::uintmax_t
u64 uintmax_t
Definition
integers.h:30
di::types::imax
intmax_t imax
Definition
integers.h:40
di::types::u8
__UINT8_TYPE__ u8
Definition
integers.h:9
di::types::size_t
std::size_t size_t
Definition
size_t.h:12
di::types::i32
__INT32_TYPE__ i32
Definition
integers.h:16
di::types::u32
__UINT32_TYPE__ u32
Definition
integers.h:11
di::types::iptr
ptrdiff_t iptr
Definition
integers.h:37
di::types::ptrdiff_t
std::ptrdiff_t ptrdiff_t
Definition
ptrdiff_t.h:12
di::types::i64
__INT64_TYPE__ i64
Definition
integers.h:17
di::types::u16
__UINT16_TYPE__ u16
Definition
integers.h:10
di
Definition
zstring_parser.h:9
ptrdiff_t.h
uintptr_t.h
libs
di
include
di
types
integers.h
Generated by
1.13.0