Int64
from_int
Section titled “from_int”fn from_int(n: Int) -> Int64Converts an Int to an Int64. Every Int is represented exactly.
to_string
Section titled “to_string”fn to_string(n: Int64) -> StringNo suffix is added.
to_int
Section titled “to_int”fn to_int(n: Int64) -> IntKeeps the low 32 bits (wraps).
bit_and
Section titled “bit_and”fn bit_and(a: Int64, b: Int64) -> Int64Bitwise AND.
bit_or
Section titled “bit_or”fn bit_or(a: Int64, b: Int64) -> Int64Bitwise OR.
bit_xor
Section titled “bit_xor”fn bit_xor(a: Int64, b: Int64) -> Int64Bitwise exclusive OR.
bit_not
Section titled “bit_not”fn bit_not(n: Int64) -> Int64Bitwise inversion.
shift_left
Section titled “shift_left”fn shift_left(n: Int64, by: Int) -> Int640 if by is 64 or more; a defect if by is negative.
shift_right
Section titled “shift_right”fn shift_right(n: Int64, by: Int) -> Int64Arithmetic shift: fills the high bits with the sign.
0 or -1 if by is 64 or more; a defect if by is negative.
shift_right_unsigned
Section titled “shift_right_unsigned”fn shift_right_unsigned(n: Int64, by: Int) -> Int64Logical shift: fills the high bits with 0. 0 if by is 64 or more; a defect if by is
negative.
fn min(a: Int64, b: Int64) -> Int64The first argument if they are equal.
fn max(a: Int64, b: Int64) -> Int64The first argument if they are equal.
fn abs(n: Int64) -> Int64The minimum Int64 wraps to itself ([target.number]).