S64Divisor

Signed 64 bit divisor

Simply use on right side of division operation

Constructors

this
this(int64_t d)
Undocumented in source.

Members

Aliases

Type
alias Type = typeof(magic)
Undocumented in source.

Functions

opAssign
auto ref opAssign(int64_t d)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
int64_t opBinaryRight(int64_t dividend)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

magic
int64_t magic;
Undocumented in source.
more
uint8_t more;
Undocumented in source.

Examples

assert (1000 / S64Divisor(81) == 12);
// Can be used with CTFE
static assert (1000 / S64Divisor(81) == 12);

Meta