The OpenD Programming Language

UInt.divMod

Performs division & extracts the remainder.

struct UInt(size_t size)
ref @safe pure nothrow @nogc scope return
divMod
(
size_t rhsSize
)
(
scope ref UInt!rhsSize rhs
)
if (
size % (size_t.sizeof * 8) == 0 &&
size >= size_t.sizeof * 8
)

Parameters

rhs UInt!rhsSize

unsigned value to divide by

Return Value

Type: ref

quotient, sets rhs to remainder

Meta