import "util/long";
This class allows to work easilly with 64-bit signed integers.
var lo: Integer;
var hi: Integer;
static function create(): Long
static function create(value: Integer): Long
static function create(lo: Integer, hi: Integer): Long
static function from_string(s: String): Long
function set(other: Long): Long
function set_int(value: Integer): Long
function set_string(s: String): Long
function set_raw(lo: Integer, hi: Integer): Long
function dup(): Long
function add(other: Long): Long
function add_int(value: Integer): Long
function add_mod(other: Long): Long
function add_mod_int(value: Integer): Long
mod
variant is using modular
arithmetic instead of throwing an error on overflow.
function sub(other: Long): Long
function sub_int(value: Integer): Long
function sub_mod(other: Long): Long
function sub_mod_int(value: Integer): Long
mod
variant is using modular
arithmetic instead of throwing an error on overflow.
function mul(other: Long): Long
function mul_int(value: Integer): Long
function mul_mod(other: Long): Long
function mul_mod_int(value: Integer): Long
mod
variant is using modular
arithmetic instead of throwing an error on overflow.
function div(other: Long): Long
function div_int(value: Integer): Long
function rem(other: Long): Long
function rem_int(value: Integer): Long
function and(other: Long): Long
function and(lo: Integer, hi: Integer): Long
function or(other: Long): Long
function or(lo: Integer, hi: Integer): Long
function xor(other: Long): Long
function xor(lo: Integer, hi: Integer): Long
function not(): Long
function shl(amount: Integer): Long
function shr(amount: Integer): Long
function ushr(amount: Integer): Long
function is_zero(): Boolean
function cmp(other: Long): Integer
function cmp_int(value: Integer): Integer
function to_int(): Integer
function to_string(): String