


The standard library int31 package implements 31-bit integer arithmetic.
The major advantage of 31-bit integers over 32-bit integers in the Mythryl context is that typeagnostic lists, vectors etc. can store 31-bit integers in a single machine word (i.e., in pointer), using a one-bit tag to distinguish them from pointer values, whereas 32-bit integers must be stored in separate records at significant overhead in time and space. (This use of 31-bit tagged integers is very similar to what is done in traditional Lisp implementations.)
The int31 package implements the Int API.
The int31 package source code is in src/lib/std/int31.pkg.
See also: int.
See also: int32.
See also: int64.
See also: integer.
The above information is manually maintained and may contain errors.
Int


