Int#
Coerce directly from address to int. Users are discouraged from using
this operation as it makes little sense on platforms with tagged
pointers.
Convert to integer. First component of the result is -1 or 1,
indicating the sign of the mantissa. The next two are the high and low
32 bits of the mantissa respectively, and the last is the exponent.
Convert to integers. First
Int# in result is the mantissa;
second is the exponent.
Truncates a
Double# value to the nearest
Int#. Results
are undefined if the truncation if truncation yields a value outside
the range of
Int#.
Truncates a
Float# value to the nearest
Int#. Results
are undefined if the truncation if truncation yields a value outside
the range of
Int#.
Read a word-sized integer from immutable array; offset in bytes.
Read a word-sized integer from immutable address; offset in bytes.
Unary negation. Since the negative
Int# range extends one
further than the positive range,
negateInt# of the most
negative number is an identity operation. This way,
negateInt#
is always its own inverse.
Rounds towards zero. The behavior is undefined if the second argument
is zero.
Read a word-sized integer from mutable array; offset in bytes.
Warning: this can fail with an unchecked exception.
Read a word-sized integer from mutable address; offset in bytes.
Warning: this can fail with an unchecked exception.
Satisfies
(quotInt# x y) *# y +#
(remInt# x y) == x. The behavior is undefined if the
second argument is zero.