23 #ifndef __ccxx_Integers_hxx 24 #define __ccxx_Integers_hxx 28 #ifdef CCXX_OS_WINDOWS 30 #ifndef CCXX_OS_WINDOWS_GNU 33 typedef UINT8 uint8_t;
34 typedef INT16 int16_t;
35 typedef UINT16 uint16_t;
36 typedef INT32 int32_t;
37 typedef UINT32 uint32_t;
38 typedef INT64 int64_t;
39 typedef UINT64 uint64_t;
40 #else // CCXX_OS_WINDOWS_GNU 41 #ifndef __STDC_FORMAT_MACROS 42 #define __STDC_FORMAT_MACROS 45 #endif // ! CCXX_OS_WINDOWS_GNU 46 #else // ! CCXX_OS_WINDOWS 47 #ifndef __STDC_FORMAT_MACROS 48 #define __STDC_FORMAT_MACROS 52 #endif // CCXX_OS_WINDOWS 76 #ifdef CCXX_OS_WINDOWS 77 typedef int64_t off64_t;
115 #if defined (CCXX_OS_WINDOWS) && ! defined (CCXX_OS_WINDOWS_GNU) 117 #define INT64_CONST(I) (I ## i64) 118 #define UINT64_CONST(I) (I ## Ui64) 122 #define INT64_CONST(I) int64_t(I ## LL) 123 #define UINT64_CONST(I) uint64_t(I ## ULL) 155 #define INT8_MIN (-128) 159 #define INT16_MIN (-32767-1) 163 #define INT32_MIN (-2147483647-1) 167 #define INT64_MIN (INT64_CONST(-9223372036854775807)-1) 171 #define INT8_MAX (127) 175 #define INT16_MAX (32767) 179 #define INT32_MAX (2147483647) 183 #define INT64_MAX (INT64_CONST(9223372036854775807)) 187 #define UINT8_MAX (255U) 191 #define UINT16_MAX (65535U) 195 #define UINT32_MAX (4294967295U) 199 #define UINT64_MAX (UINT64_CONST(18446744073709551615)) 228 #if defined(CCXX_OS_WINDOWS) || defined (CCXX_OS_WINDOWS_GNU) 230 #define INT64_FMT "%I64d" 231 #define UINT64_FMT "%I64u" 234 #define INT64_P_FMT(W) "%" #W "I64d" 235 #define UINT64_P_FMT(W) "%" #W "I64u" 241 #define INT64_WIDE_P_FMT(W) L"%" #W "I64d" 242 #define UINT64_WIDE_P_FMT(W) L"%" #W "I64u" 246 #define INT64_WIDE_P_FMT(W) L"%" L#W L"I64d" 247 #define UINT64_WIDE_P_FMT(W) L"%" L#W L"I64u" 253 #define INT64_FMT "%" PRId64 254 #define UINT64_FMT "%" PRIu64 257 #define INT64_P_FMT(W) "%" #W PRId64 258 #define UINT64_P_FMT(W) "%" #W PRIu64 267 #define CCXX_BIT_SET(N, BIT) \ 268 ((N) |= (1 << (BIT))) 275 #define CCXX_BIT_CLEAR(N, BIT) \ 276 (((N) &= ~(1 << (BIT)))) 283 #define CCXX_BIT_READ(N, BIT) \ 284 ((((N) & (1 << (BIT))) == 0) ? 0 : 1) 292 #define CCXX_BIT_WRITE(N, BIT, VALUE) \ 293 ((VALUE) ? CCXX_BIT_SET((N), (BIT)) : CCXX_BIT_CLEAR((N), (BIT))) 301 #define CCXX_BIT_TEST(N, BIT) \ 302 (((N) & (1 << (BIT))) != 0) 304 #endif // __ccxx_Integers_hxx
int64_t time_ms_t
A time expressed in milliseconds since the epoch (00:00:00, UTC, January 1, 1970).
Definition: Integers.h++:98
int32_t time_s_t
A time expressed in seconds since the epoch (00:00:00, UTC, January 1, 1970).
Definition: Integers.h++:85
unsigned int uint_t
An alias for unsigned int.
Definition: Integers.h++:74
int timespan_s_t
A timespan expressed in seconds.
Definition: Integers.h++:91
int timespan_ms_t
A timespan expressed in milliseconds.
Definition: Integers.h++:104
Definition: AllocationMap.c++:25
unsigned char byte_t
An unsigned 8-bit value.
Definition: Integers.h++:68