core.int128
struct Cent
Functions 38
fn
bool tst(Cent c) pure nothrow @safe @nogcTest against 0 Params: c = Cent to test Returns: true if != 0fn
Cent com(Cent c) pure nothrow @safe @nogcComplement Params: c = Cent to complement Returns: complemented valuefn
Cent abs(Cent c) pure nothrow @safe @nogcAbsolute value Note: This is a signed operation. Params: c = Cent to get absolute value of Returns: absolute value of cfn
Cent inc(Cent c) pure nothrow @safe @nogcIncrement Params: c = Cent to increment Returns: incremented valuefn
Cent dec(Cent c) pure nothrow @safe @nogcDecrement Params: c = Cent to decrement Returns: incremented valuefn
Cent shl1(Cent c) pure nothrow @safe @nogcShift left one bit Params: c = Cent to shift Returns: shifted valuefn
Cent shr1(Cent c) pure nothrow @safe @nogcUnsigned shift right one bit Params: c = Cent to shift Returns: shifted valuefn
Cent sar1(Cent c) pure nothrow @safe @nogcArithmetic shift right one bit Params: c = Cent to shift Returns: shifted valuefn
Cent shl(Cent c, uint n) pure nothrow @safe @nogcShift left n bits Params: c = Cent to shift n = number of bits to shift Returns: shifted valuefn
Cent shr(Cent c, uint n) pure nothrow @safe @nogcUnsigned shift right n bits Params: c = Cent to shift n = number of bits to shift Returns: shifted valuefn
Cent rol1(Cent c) pure nothrow @safe @nogcRotate left one bit Params: c = Cent to rotate Returns: rotated valuefn
Cent ror1(Cent c) pure nothrow @safe @nogcRotate right one bit Params: c = Cent to rotate Returns: rotated valuefn
Cent rol(Cent c, uint n) pure nothrow @safe @nogcRotate left n bits Params: c = Cent to rotate n = number of bits to rotate Returns: rotated valuefn
Cent ror(Cent c, uint n) pure nothrow @safe @nogcRotate right n bits Params: c = Cent to rotate n = number of bits to rotate Returns: rotated valuefn
Cent and(Cent c1, Cent c2) pure nothrow @safe @nogcAnd c1 & c2. Params: c1 = operand 1 c2 = operand 2 Returns: c1 & c2fn
Cent or(Cent c1, Cent c2) pure nothrow @safe @nogcOr c1 | c2. Params: c1 = operand 1 c2 = operand 2 Returns: c1 | c2fn
Cent xor(Cent c1, Cent c2) pure nothrow @safe @nogcXor c1 ^ c2. Params: c1 = operand 1 c2 = operand 2 Returns: c1 ^ c2fn
Cent add(Cent c1, Cent c2) pure nothrow @safe @nogcAdd c1 to c2. Params: c1 = operand 1 c2 = operand 2 Returns: c1 + c2fn
Cent sub(Cent c1, Cent c2) pure nothrow @safe @nogcSubtract c2 from c1. Params: c1 = operand 1 c2 = operand 2 Returns: c1 - c2fn
Cent mul(Cent c1, Cent c2) pure nothrow @safe @nogcMultiply c1 c2. Note: The algorithm is identical for both signed and unsigned multiplication. Params: c1 = operand 1 c2 = operand 2 Returns: c1 c2fn
Cent mul(ulong u1, ulong u2) pure nothrow @safe @nogcMultiply 64-bit operands u1 u2 in 128-bit precision. Params: u1 = operand 1 u2 = operand 2 Returns: u1 u2 in 128-bit precisionfn
Cent udiv(Cent c1, Cent c2) pure nothrow @safe @nogcUnsigned divide c1 / c2. Params: c1 = dividend c2 = divisor Returns: quotient c1 / c2fn
Cent udivmod(Cent c1, Cent c2, out Cent modulus) pure nothrow @safe @nogcUnsigned divide c1 / c2. The remainder after division is stored to modulus. Params: c1 = dividend c2 = divisor modulus = set to c1 % c2 Returns: quotient c1 / c2fn
U udivmod(Cent c1, U c2, out U modulus) pure nothrow @safe @nogcUnsigned divide 128-bit c1 / 64-bit c2. The result must fit in 64 bits. The remainder after division is stored to modulus. Params: c1 = dividend c2 = divisor modulus = set to c1 % c2 Returns: quoti...fn
Cent div(Cent c1, Cent c2) pure nothrow @safe @nogcSigned divide c1 / c2. Note: Performs signed division. Use udiv() for unsigned division. Params: c1 = dividend c2 = divisor Returns: quotient c1 / c2fn
Cent divmod(Cent c1, Cent c2, out Cent modulus) pure nothrow @safe @nogcSigned divide c1 / c2. The remainder after division is stored to modulus. Params: c1 = dividend c2 = divisor modulus = set to c1 % c2 Returns: quotient c1 / c2fn
Cent urem(Cent c1, Cent c2) pure nothrow @safe @nogcUnsigned remainder c1 % c2. Params: c1 = dividend c2 = divisor Returns: remainder c1 % c2fn
Cent rem(Cent c1, Cent c2) pure nothrow @safe @nogcSigned remainder c1 % c2. Params: c1 = dividend c2 = divisor Returns: remainder c1 % c2fn
bool ugt(Cent c1, Cent c2) pure nothrow @safe @nogcIf c1 > c2 unsigned Params: c1 = operand 1 c2 = operand 2 Returns: true if c1 > c2fn
bool uge(Cent c1, Cent c2) pure nothrow @safe @nogcIf c1 >= c2 unsigned Params: c1 = operand 1 c2 = operand 2 Returns: true if c1 >= c2fn
bool ult(Cent c1, Cent c2) pure nothrow @safe @nogcIf c1 < c2 unsigned Params: c1 = operand 1 c2 = operand 2 Returns: true if c1 < c2fn
bool ule(Cent c1, Cent c2) pure nothrow @safe @nogcIf c1 <= c2 unsigned Params: c1 = operand 1 c2 = operand 2 Returns: true if c1 <= c2fn
bool gt(Cent c1, Cent c2) pure nothrow @safe @nogcIf c1 > c2 signed Params: c1 = operand 1 c2 = operand 2 Returns: true if c1 > c2fn
bool ge(Cent c1, Cent c2) pure nothrow @safe @nogcIf c1 >= c2 signed Params: c1 = operand 1 c2 = operand 2 Returns: true if c1 >= c2