A cross-platform signed 64-bit integer.
Int64 instances can be created from two 32-bit words using Int64.make()
.
Static methods
staticinlinecompare(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
.
staticinlineofInt(x:Int):Int64
Returns an Int64 with the value of the Int x
.
x
is sign-extended to fill 64 bits.
staticinlineshr(a:Int64, b:Int):Int64
Returns a
right-shifted by b
bits in signed mode.
a
is sign-extended.
staticinlinetoInt(x:Int64):Int
Returns an Int with the value of the Int64 x
.
Throws an exception if x
cannot be represented in 32 bits.
staticinlineucompare(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
.