The OpenD Programming Language

Int128

128 bit signed integer type.

Constructors

this
this(long lo)

Construct an Int128 from a long value. The upper 64 bits are formed by sign extension.

this
this(ulong lo)

Construct an Int128 from a ulong value. The upper 64 bits are set to zero.

this
this(long hi, long lo)

Construct an Int128 from a long value.

this
this(Cent data)

Construct an Int128 from a Cent.

Members

Functions

opBinary
Int128 opBinary(Int128 op2)
Int128 opBinary(Int op2)
Int128 opBinary(IntLike op2)
Int128 opBinary(long op2)
opBinaryRight
Int128 opBinaryRight(Int op2)
Int128 opBinaryRight(IntLike op2)

Support binary arithmetic operators + - * / % & | ^ << >> >>>

opCast
bool opCast()

Support casting to a bool

opCast
T opCast()

Support casting to an integral type

opCast
T opCast()

Support casting to floating point type

opCmp
int opCmp(Int128 op2)
int opCmp(Int op2)
int opCmp(IntLike op2)

support arithmentic comparison operators < <= > >=

opEquals
bool opEquals(long lo)

Compare for equality

opEquals
bool opEquals(ulong lo)

Compare for equality

opEquals
bool opEquals(Int128 op2)

Compare for equality

opOpAssign
Int128 opOpAssign(Int128 op2)
Int128 opOpAssign(Int op2)

arithmetic assignment operators += -= *= /= %= &= |= ^= <<= >>= >>>=

opUnary
Int128 opUnary()

Support unary arithmentic operator +

opUnary
Int128 opUnary()

Support unary arithmentic operator - ~

opUnary
Int128 opUnary()

Support unary arithmentic operator ++ --

toHash
size_t toHash()
toString
void toString(Writer sink, FormatSpec fmt)

Formats Int128 with either %d, %x, %X, or %s (same as %d).

Manifest constants

max
enum max;

maximum value

min
enum min;

minimum value

Variables

data
Cent data;

core.int128.Cent

Meta