FastDivULong

Barrett reductionを使用し、高速除算を行う。 ulongをこれで置き換えれば大体うまく動く。

Constructors

this
this(ulong value)
Undocumented in source.

Members

Functions

opBinaryRight
ulong opBinaryRight(ulong x)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
ulong opBinaryRight(ulong x)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

lg
int lg;
m
ulong m;
Undocumented in source.
value
ulong value;
Undocumented in source.

Examples

assert(11 / FastDivULong(3) == 3);
assert(11 % FastDivULong(3) == 2);

Meta