Skip to content

Int64

fn from_int(n: Int) -> Int64

Converts an Int to an Int64. Every Int is represented exactly.

fn to_string(n: Int64) -> String

No suffix is added.

fn to_int(n: Int64) -> Int

Keeps the low 32 bits (wraps).

fn bit_and(a: Int64, b: Int64) -> Int64

Bitwise AND.

fn bit_or(a: Int64, b: Int64) -> Int64

Bitwise OR.

fn bit_xor(a: Int64, b: Int64) -> Int64

Bitwise exclusive OR.

fn bit_not(n: Int64) -> Int64

Bitwise inversion.

fn shift_left(n: Int64, by: Int) -> Int64

0 if by is 64 or more; a defect if by is negative.

fn shift_right(n: Int64, by: Int) -> Int64

Arithmetic shift: fills the high bits with the sign. 0 or -1 if by is 64 or more; a defect if by is negative.

fn shift_right_unsigned(n: Int64, by: Int) -> Int64

Logical 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) -> Int64

The first argument if they are equal.

fn max(a: Int64, b: Int64) -> Int64

The first argument if they are equal.

fn abs(n: Int64) -> Int64

The minimum Int64 wraps to itself ([target.number]).