81#if defined(ARCH_ARM64) || defined(__aarch64__) || defined(ARCH_X64) || defined(__x86_64__)
94#if defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
97#define INT8_MIN (-128)
98#define INT16_MIN (-32768)
99#define INT32_MIN (-2147483647 - 1)
100#define INT64_MIN (-9223372036854775807LL - 1)
103#define INT16_MAX 32767
104#define INT32_MAX 2147483647
105#define INT64_MAX 9223372036854775807LL
107#define UINT8_MAX 0xff
108#define UINT16_MAX 0xffff
109#define UINT32_MAX 0xffffffff
110#define UINT64_MAX 0xffffffffffffffffULL
113#define INT_LEAST8_MIN INT8_MIN
114#define INT_LEAST16_MIN INT16_MIN
115#define INT_LEAST32_MIN INT32_MIN
116#define INT_LEAST64_MIN INT64_MIN
118#define INT_LEAST8_MAX INT8_MAX
119#define INT_LEAST16_MAX INT16_MAX
120#define INT_LEAST32_MAX INT32_MAX
121#define INT_LEAST64_MAX INT64_MAX
123#define UINT_LEAST8_MAX UINT8_MAX
124#define UINT_LEAST16_MAX UINT16_MAX
125#define UINT_LEAST32_MAX UINT32_MAX
126#define UINT_LEAST64_MAX UINT64_MAX
129#define INT_FAST8_MIN INT8_MIN
130#define INT_FAST16_MIN INT16_MIN
131#define INT_FAST32_MIN INT32_MIN
132#define INT_FAST64_MIN INT64_MIN
134#define INT_FAST8_MAX INT8_MAX
135#define INT_FAST16_MAX INT16_MAX
136#define INT_FAST32_MAX INT32_MAX
137#define INT_FAST64_MAX INT64_MAX
139#define UINT_FAST8_MAX UINT8_MAX
140#define UINT_FAST16_MAX UINT16_MAX
141#define UINT_FAST32_MAX UINT32_MAX
142#define UINT_FAST64_MAX UINT64_MAX
146#define INTPTR_MIN INT32_MIN
147#define INTPTR_MAX INT32_MAX
148#define UINTPTR_MAX UINT32_MAX
151#define INTMAX_MIN INT64_MIN
152#define INTMAX_MAX INT64_MAX
153#define UINTMAX_MAX UINT64_MAX
156#define PTRDIFF_MIN INT32_MIN
157#define PTRDIFF_MAX INT32_MAX
159#define SIG_ATOMIC_MIN INT32_MIN
160#define SIG_ATOMIC_MAX INT32_MAX
162#define SIZE_MAX 0xFFFFF
166#define WCHAR_MAX ((wchar_t) - 1)
173#define WINT_MAX ((wint_t) - 1)
178#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
182#define INT8_C(val) ((int8_t)+(val))
183#define UINT8_C(val) ((uint8_t)+(val##U))
184#define INT16_C(val) ((int16_t)+(val))
185#define UINT16_C(val) ((uint16_t)+(val##U))
187#define INT32_C(val) val##L
188#define UINT32_C(val) val##UL
189#define INT64_C(val) val##LL
190#define UINT64_C(val) val##ULL
193#define INTMAX_C(val) INT64_C(val)
194#define UINTMAX_C(val) UINT64_C(val)
204 return (T)((
size_t)p1 + offset);
206template <
class T,
class U> T
mem_after(U* p1) {
211#define RAW_OFFSET(type, x, offset) (type)((size_t)x + offset)
214#define DIV_ROUND_UP(x, y) ((x + y - 1) / y)
216#define ALIGN_UP(x, y) (DIV_ROUND_UP(x, y) * y)
long long int_least64_t
Definition stdint.h:73
int intptr_t
Definition stdint.h:93
uint64_t size_t
Definition stdint.h:104
unsigned short uint16_t
Definition stdint.h:50
unsigned char uint_fast8_t
Definition stdint.h:81
unsigned uint32_t
Definition stdint.h:52
int int32_t
Definition stdint.h:51
uint8_t uint8
Definition stdint.h:56
unsigned int uint_fast32_t
Definition stdint.h:85
int int_least32_t
Definition stdint.h:71
unsigned int uintptr_t
Definition stdint.h:94
unsigned long long uintmax_t
Definition stdint.h:99
int64_t int64
Definition stdint.h:63
short int_least16_t
Definition stdint.h:69
long long int_fast64_t
Definition stdint.h:86
long long int64_t
Definition stdint.h:53
int int_fast32_t
Definition stdint.h:84
unsigned long long uint_least64_t
Definition stdint.h:74
int16_t int16
Definition stdint.h:61
short int16_t
Definition stdint.h:49
int8_t int8
Definition stdint.h:60
unsigned long long uint64_t
Definition stdint.h:54
unsigned uint_least32_t
Definition stdint.h:72
unsigned short uint_fast16_t
Definition stdint.h:83
unsigned char uint_least8_t
Definition stdint.h:68
unsigned long long uint_fast64_t
Definition stdint.h:87
int32_t int32
Definition stdint.h:62
unsigned char uint8_t
Definition stdint.h:48
uint64_t uint64
Definition stdint.h:59
uint16_t uint16
Definition stdint.h:57
long long intmax_t
Definition stdint.h:98
uint32_t uint32
Definition stdint.h:58
unsigned short uint_least16_t
Definition stdint.h:70
signed char int_least8_t
Definition stdint.h:67
signed char int8_t
Definition stdint.h:47
char int_fast8_t
Definition stdint.h:80
short int_fast16_t
Definition stdint.h:82
std::ptrdiff_t raw_diff(T p1, T p2)
Definition Common.hpp:26
T raw_offset(U p1, std::ptrdiff_t offset)
Definition Common.hpp:41
T mem_after(T p1)
Definition Common.hpp:58
int int32_t
Definition acefiex.h:160
unsigned int uint32_t
Definition acefiex.h:163
COMPILER_DEPENDENT_INT64 int64_t
Definition acefiex.h:164
short int int16_t
Definition acefiex.h:159
unsigned char uint8_t
Definition acefiex.h:161
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
unsigned short int uint16_t
Definition acefiex.h:162
signed char int8_t
Definition acefiex.h:158