Add MIN/MAX constants
This commit is contained in:
parent
7ac2113e60
commit
7f0064db02
1 changed files with 17 additions and 0 deletions
17
axl_types.h
17
axl_types.h
|
|
@ -15,4 +15,21 @@ typedef unsigned long long u64;
|
|||
#define false 0
|
||||
#define NULL ((void*)0)
|
||||
|
||||
// Minimum and maximum values for integer types
|
||||
#define I8_MIN (-128)
|
||||
#define I8_MAX 127
|
||||
#define U8_MAX 255
|
||||
|
||||
#define I16_MIN (-32768)
|
||||
#define I16_MAX 32767
|
||||
#define U16_MAX 65535
|
||||
|
||||
#define I32_MIN (-2147483647 - 1)
|
||||
#define I32_MAX 2147483647
|
||||
#define U32_MAX 4294967295U
|
||||
|
||||
#define I64_MIN (-9223372036854775807LL - 1LL)
|
||||
#define I64_MAX 9223372036854775807LL
|
||||
#define U64_MAX 18446744073709551615ULL
|
||||
|
||||
#endif // !AXL_TYPES_H
|
||||
|
|
|
|||
Loading…
Reference in a new issue