choose_multiplier

Implement Algorithm 6.2: Selection of multiplier and shift count

extern (C) nothrow @safe @trusted
bool
choose_multiplier
(
int N
,
ullong d
,
int prec
,
ullong* pm
,
int* pshpost
)

Parameters

N int

32 or 64

d ullong

divisor (must not be 0 or a power of 2)

prec int

bits of precision desired Output:

Return Value

Type: bool

true m >= 2**N

Meta