Int64

GitHub   Edit on GitHub

Utilities for working with the Int64 type.

1
import Int64 from 'stdint64'

Values

Int64.fromNumber

1
fromNumber : Number -> Int64

Coverts the argument from a Number to an Int64.

Int64.toNumber

1
toNumber : Int64 -> Number

Converts the argument from an Int64 to a Number.

Int64.lnot

1
lnot : Int64 -> Int64

Computes the bitwise logical “not” of the argument.

Int64.land

1
land : (Int64, Int64) -> Int64

Computes the bitwise logical “and” of the two arguments.

Int64.lor

1
lor : (Int64, Int64) -> Int64

Computes the bitwise logical “or” of the two arguments.

Int64.lxor

1
lxor : (Int64, Int64) -> Int64

Computes the bitwise logical “xor” of the two arguments.

Int64.lsl

1
lsl : (Int64, Number) -> Int64

Computes the bitwise logical shift left of the first argument by the second argument.

Int64.lsr

1
lsr : (Int64, Number) -> Int64

Computes the bitwise logical shift right of the first argument by the second argument.

Int64.asr

1
asr : (Int64, Number) -> Int64

Computes the bitwise arithmetic (signed) shift right of the first argument by the second argument.

Int64.gt

1
gt : (Int64, Int64) -> Bool

Checks if the first argument is strictly greater than the second argument.

Int64.gte

1
gte : (Int64, Int64) -> Bool

Checks if the first argument is greater than or equal to the second argument.

Int64.lt

1
lt : (Int64, Int64) -> Bool

Checks if the first argument is strictly less than the second argument.

Int64.lte

1
lte : (Int64, Int64) -> Bool

Checks if the first argument is less than or equal to the second argument.

This is a notification!