-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathlimits.jou
More file actions
35 lines (30 loc) · 845 Bytes
/
limits.jou
File metadata and controls
35 lines (30 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file defines constants for minimum and maximum values that fit into
# Jou's integer types. For example, `INT32_MAX` is the largest value that can
# be stored into an `int`.
#
# See also: doc/types.md
@public
const INT8_MIN: int8 = -128
@public
const INT8_MAX: int8 = 127
@public
const INT16_MIN: int16 = -32_768
@public
const INT16_MAX: int16 = 32_767
@public
const INT32_MIN: int32 = -2_147_483_648
@public
const INT32_MAX: int32 = 2_147_483_647
@public
const INT64_MIN: int64 = -9_223_372_036_854_775_808
@public
const INT64_MAX: int64 = 9_223_372_036_854_775_807
# For unsigned integers, the minimum is zero, so only the maximums are here.
@public
const UINT8_MAX: uint8 = 255
@public
const UINT16_MAX: uint16 = 65_535
@public
const UINT32_MAX: uint32 = 4_294_967_295
@public
const UINT64_MAX: uint64 = 18_446_744_073_709_551_615