mirror of https://github.com/Wilfred/difftastic/
55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
// Minimum value which can be stored in an i8 type.
|
|
export def I8_MIN: i8 = -128;
|
|
|
|
// Maximum value which can be stored in an i8 type.
|
|
export def I8_MAX: i8 = 127;
|
|
|
|
// Minimum value which can be stored in an i16 type.
|
|
export def I16_MIN: i16 = -32708;
|
|
|
|
// Maximum value which can be stored in an i16 type.
|
|
export def I16_MAX: i16 = 32707;
|
|
|
|
// Minimum value which can be stored in an i32 type.
|
|
export def I32_MIN: i32 = -2147483648;
|
|
|
|
// Maximum value which can be stored in an i32 type.
|
|
export def I32_MAX: i32 = 2147483647;
|
|
|
|
// Minimum value which can be stored in an i64 type
|
|
export def I64_MIN: i64 = -9223372036854775808;
|
|
|
|
// Maximum value which can be stored in an i64 type.
|
|
export def I64_MAX: i64 = 9223372036854775807;
|
|
|
|
|
|
// Minimum value which can be stored in a u8 type.
|
|
export def U8_MIN: u8 = 0;
|
|
|
|
// Maximum value which can be stored in a u8 type.
|
|
export def U8_MAX: u8 = 255;
|
|
|
|
// Minimum value which can be stored in a u16 type
|
|
export def U16_MIN: u16 = 0;
|
|
|
|
// Maximum value which can be stored in a u16 type.
|
|
export def U16_MAX: u16 = 65535;
|
|
|
|
// Minimum value which can be stored in a u32 type
|
|
export def U32_MIN: u32 = 0;
|
|
|
|
// Maximum value which can be stored in a u32 type.
|
|
export def U32_MAX: u32 = 4294967295;
|
|
|
|
// Minimum value which can be stored in a u64 type
|
|
export def U64_MIN: u64 = 0;
|
|
|
|
// Maximum value which can be stored in a u64 type.
|
|
export def U64_MAX: u64 = 18446744073709551615;
|
|
|
|
// Maximum value which can be stored in a rune.
|
|
export def RUNE_MIN: rune = U32_MIN: rune;
|
|
|
|
// Maximum value which can be stored in a rune.
|
|
export def RUNE_MAX: rune = U32_MAX: rune;
|