The OpenD Programming Language

core.int128

Undocumented in source.

Members

Functions

add
Cent add(Cent c1, Cent c2)

Add c1 to c2.

and
Cent and(Cent c1, Cent c2)

And c1 & c2.

com
Cent com(Cent c)

Complement

dec
Cent dec(Cent c)

Decrement

div
Cent div(Cent c1, Cent c2)

Signed divide c1 / c2.

divmod
Cent divmod(Cent c1, Cent c2, Cent modulus)

Signed divide c1 / c2. The remainder after division is stored to modulus.

ge
bool ge(Cent c1, Cent c2)

If c1 >= c2 signed

gt
bool gt(Cent c1, Cent c2)

If c1 > c2 signed

inc
Cent inc(Cent c)

Increment

le
bool le(Cent c1, Cent c2)

If c1 <= c2 signed

lt
bool lt(Cent c1, Cent c2)

If c1 < c2 signed

mul
Cent mul(Cent c1, Cent c2)

Multiply c1 * c2.

neg
Cent neg(Cent c)

Negate

or
Cent or(Cent c1, Cent c2)

Or c1 | c2.

rol
Cent rol(Cent c, uint n)

Rotate left n bits

rol1
Cent rol1(Cent c)

Rotate left one bit

ror
Cent ror(Cent c, uint n)

Rotate right n bits

ror1
Cent ror1(Cent c)

Rotate right one bit

sar
Cent sar(Cent c, uint n)

Arithmetic shift right n bits

sar1
Cent sar1(Cent c)

Arithmetic shift right one bit

shl
Cent shl(Cent c, uint n)

Shift left n bits

shl1
Cent shl1(Cent c)

Shift left one bit

shr
Cent shr(Cent c, uint n)

Unsigned shift right n bits

shr1
Cent shr1(Cent c)

Unsigned shift right one bit

sub
Cent sub(Cent c1, Cent c2)

Subtract c2 from c1.

tst
bool tst(Cent c)

Test against 0

udiv
Cent udiv(Cent c1, Cent c2)

Unsigned divide c1 / c2.

udivmod
Cent udivmod(Cent c1, Cent c2, Cent modulus)

Unsigned divide c1 / c2. The remainder after division is stored to modulus.

uge
bool uge(Cent c1, Cent c2)

If c1 >= c2 unsigned

ugt
bool ugt(Cent c1, Cent c2)

If c1 > c2 unsigned

ule
bool ule(Cent c1, Cent c2)

If c1 <= c2 unsigned

ult
bool ult(Cent c1, Cent c2)

If c1 < c2 unsigned

xor
Cent xor(Cent c1, Cent c2)

Xor c1 ^ c2.

Variables

lo
U lo;

128 bit integer type.

Meta