MCPcopy Create free account
hub / github.com/dtrace4linux/linux / dt_divide_128

Function dt_divide_128

libdtrace/dt_consume.c:205–247  ·  view source on GitHub ↗

* This is long-hand division. * * We initialize subtrahend by shifting divisor left as far as possible. We * loop, comparing subtrahend to dividend: if subtrahend is smaller, we * subtract and set the appropriate bit in the result. We then shift * subtrahend right by one bit for the next comparison. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

dt_stddevFunction · 0.85

Calls 3

dt_shift_128Function · 0.85
dt_ge_128Function · 0.85
dt_subtract_128Function · 0.85

Tested by

no test coverage detected