2020-03-13 14:11:58 +01:00
|
|
|
//#define UINT_MAX
|
2020-03-21 14:12:26 +01:00
|
|
|
#define SIZE_T_MAX MAX_UINTN
|
2023-11-18 11:04:54 +01:00
|
|
|
|
2024-01-10 14:08:21 +01:00
|
|
|
#ifndef INT8_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT8_MIN (-128)
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT16_MIN
|
|
|
|
#ifndef INT16_MIN
|
|
|
|
#endif
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT16_MIN (-32768)
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT32_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT32_MIN (-2147483647 - 1)
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT64_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT64_MIN (-9223372036854775807LL - 1)
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
2023-11-18 11:04:54 +01:00
|
|
|
|
2024-01-10 14:08:21 +01:00
|
|
|
#ifndef INT8_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT8_MAX 127
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT16_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT16_MAX 32767
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT32_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT32_MAX 2147483647
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT64_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT64_MAX 9223372036854775807LL
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
2023-11-18 11:04:54 +01:00
|
|
|
|
2024-01-10 14:08:21 +01:00
|
|
|
#ifndef UINT8_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define UINT8_MAX 0xff /* 255U */
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef UINT16_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define UINT16_MAX 0xffff /* 65535U */
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef UINT32_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define UINT32_MAX 0xffffffff /* 4294967295U */
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef UINT64_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define UINT64_MAX 0xffffffffffffffffULL /* 18446744073709551615ULL */
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
2023-11-18 11:04:54 +01:00
|
|
|
|
2024-01-10 14:08:21 +01:00
|
|
|
#ifndef CHAR_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define CHAR_MIN (-128)
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef SCHAR_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define SCHAR_MIN (-128)
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef SHRT_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define SHRT_MIN (-32768)
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT_MIN INT32_MIN
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef LONG_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define LONG_MIN INT64_MIN
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef LLONG_MIN
|
2023-11-18 11:04:54 +01:00
|
|
|
#define LLONG_MIN INT64_MIN
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
2023-11-18 11:04:54 +01:00
|
|
|
|
2024-01-10 14:08:21 +01:00
|
|
|
#ifndef CHAR_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define CHAR_MAX 127
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef SCHAR_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define SCHAR_MAX 127
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef SHRT_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define SHRT_MAX 32767
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef INT_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define INT_MAX INT32_MAX
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef LONG_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define LONG_MAX INT64_MAX
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef LLONG_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define LLONG_MAX INT64_MAX
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
2023-11-18 11:04:54 +01:00
|
|
|
|
2024-01-10 14:08:21 +01:00
|
|
|
#ifndef UCHAR_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define UCHAR_MAX 255
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef USHRT_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define USHRT_MAX 65535
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef UINT_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define UINT_MAX UINT32_MAX
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef ULONG_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define ULONG_MAX UINT64_MAX
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|
|
|
|
#ifndef ULLONG_MAX
|
2023-11-18 11:04:54 +01:00
|
|
|
#define ULLONG_MAX UINT64_MAX
|
2024-01-10 14:08:21 +01:00
|
|
|
#endif
|