| 1 |
// SPDX-License-Identifier: MPL-2.0 |
| 2 |
// (c) Hare authors <https://harelang.org> |
| 3 |
|
| 4 |
// Minimum value which can be stored in an i8 type. |
| 5 |
export def I8_MIN: i8 = -128; |
| 6 |
|
| 7 |
// Maximum value which can be stored in an i8 type. |
| 8 |
export def I8_MAX: i8 = 127; |
| 9 |
|
| 10 |
// Minimum value which can be stored in an i16 type. |
| 11 |
export def I16_MIN: i16 = -32768; |
| 12 |
|
| 13 |
// Maximum value which can be stored in an i16 type. |
| 14 |
export def I16_MAX: i16 = 32767; |
| 15 |
|
| 16 |
// Minimum value which can be stored in an i32 type. |
| 17 |
export def I32_MIN: i32 = -2147483648; |
| 18 |
|
| 19 |
// Maximum value which can be stored in an i32 type. |
| 20 |
export def I32_MAX: i32 = 2147483647; |
| 21 |
|
| 22 |
// Minimum value which can be stored in an i64 type |
| 23 |
export def I64_MIN: i64 = -9223372036854775808i64; |
| 24 |
|
| 25 |
// Maximum value which can be stored in an i64 type. |
| 26 |
export def I64_MAX: i64 = 9223372036854775807; |
| 27 |
|
| 28 |
|
| 29 |
// Minimum value which can be stored in a u8 type. |
| 30 |
export def U8_MIN: u8 = 0; |
| 31 |
|
| 32 |
// Maximum value which can be stored in a u8 type. |
| 33 |
export def U8_MAX: u8 = 255; |
| 34 |
|
| 35 |
// Minimum value which can be stored in a u16 type |
| 36 |
export def U16_MIN: u16 = 0; |
| 37 |
|
| 38 |
// Maximum value which can be stored in a u16 type. |
| 39 |
export def U16_MAX: u16 = 65535; |
| 40 |
|
| 41 |
// Minimum value which can be stored in a u32 type |
| 42 |
export def U32_MIN: u32 = 0; |
| 43 |
|
| 44 |
// Maximum value which can be stored in a u32 type. |
| 45 |
export def U32_MAX: u32 = 4294967295; |
| 46 |
|
| 47 |
// Minimum value which can be stored in a u64 type |
| 48 |
export def U64_MIN: u64 = 0; |
| 49 |
|
| 50 |
// Maximum value which can be stored in a u64 type. |
| 51 |
export def U64_MAX: u64 = 18446744073709551615; |
| 52 |
|
| 53 |
// Minimum Unicode codepoint which can be stored in a rune. |
| 54 |
export def RUNE_MIN: rune = '\0'; |
| 55 |
|
| 56 |
// Maximum Unicode codepoint which can be stored in a rune. |
| 57 |
export def RUNE_MAX: rune = '\U0010ffff'; |