mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-30 16:41:05 +08:00
Add _MIN and _MAX macros for the fixed-size types.
This commit is contained in:
parent
3b69717a12
commit
ea8a28253b
@ -182,4 +182,20 @@ typedef unsigned char uint8_t;
|
||||
#define SCNx32 _scn32 "x"
|
||||
#define SCNx64 _scn64 "x"
|
||||
|
||||
#define INT8_MIN INT8_C(-128)
|
||||
#define INT8_MAX INT8_C(127)
|
||||
#define UINT8_MAX UINT8_C(255)
|
||||
|
||||
#define INT16_MIN INT16_C(-32768)
|
||||
#define INT16_MAX INT16_C(32767)
|
||||
#define UINT16_MAX UINT16_C(65535)
|
||||
|
||||
#define INT32_MIN INT32_C(-2147483648)
|
||||
#define INT32_MAX INT32_C(2147483647)
|
||||
#define UINT32_MAX UINT32_C(4294967295)
|
||||
|
||||
#define INT64_MIN INT64_C(-9223372036854775808)
|
||||
#define INT64_MAX INT64_C(9223372036854775807)
|
||||
#define UINT64_MAX UINT64_C(18446744073709551615)
|
||||
|
||||
#endif /* INTTYPES_H */
|
||||
|
Loading…
Reference in New Issue
Block a user