abstract haxe.Int64(__Int64)

Available on all platforms

A cross-platform signed 64-bit integer. Int64 instances can be created from two 32-bit words using Int64.make().

Class Fields

function add(a:Int64, b:Int64):Int64

Returns the sum of a and b.

function and(a:Int64, b:Int64):Int64

Returns the bitwise AND of a and b.

function compare(a:Int64, b:Int64):Int

Compares a and b in signed mode. Returns a negative value if a < b, positive if a > b, or 0 if a == b.

function div(a:Int64, b:Int64):Int64

Returns the quotient of a divided by b.

function divMod(dividend:Int64, divisor:Int64):{quotient:Int64, modulus:Int64}

Performs signed integer divison of dividend by divisor. Returns { quotient : Int64, modulus : Int64 }.

function eq(a:Int64, b:Int64):Bool

Returns true if a is equal to b.

function getHigh(x:Int64):Int32

Returns the high 32-bit word of x.

function getLow(x:Int64):Int32

Returns the low 32-bit word of x.

function isNeg(x:Int64):Bool

Returns true if x is less than zero.

function isZero(x:Int64):Bool

Returns true if x is exactly zero.

function make(high:Int32, low:Int32):Int64

Construct an Int64 from two 32-bit words high and low.

function mod(a:Int64, b:Int64):Int64

Returns the modulus of a divided by b.

function mul(a:Int64, b:Int64):Int64

Returns the product of a and b.

function neg(x:Int64):Int64

Returns the negative of x.

function neq(a:Int64, b:Int64):Bool

Returns true if a is not equal to b.

function ofInt(x:Int):Int64

Returns an Int64 with the value of the Int x. x is sign-extended to fill 64 bits.

function or(a:Int64, b:Int64):Int64

Returns the bitwise OR of a and b.

function shl(a:Int64, b:Int):Int64

Returns a left-shifted by b bits.

function shr(a:Int64, b:Int):Int64

Returns a right-shifted by b bits in signed mode. a is sign-extended.

function sub(a:Int64, b:Int64):Int64

Returns a minus b.

function toInt(x:Int64):Int

Returns an Int with the value of the Int64 x. Throws an exception if x cannot be represented in 32 bits.

function toStr(x:Int64):String

Returns a signed decimal String representation of x.

function ucompare(a:Int64, b:Int64):Int

Compares a and b in unsigned mode. Returns a negative value if a < b, positive if a > b, or 0 if a == b.

function ushr(a:Int64, b:Int):Int64

Returns a right-shifted by b bits in unsigned mode. a is padded with zeroes.

function xor(a:Int64, b:Int64):Int64

Returns the bitwise XOR of a and b.

Instance Fields

function copy():Int64

Makes a copy of this Int64.