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

Function dt_sqrt_128

libdtrace/dt_consume.c:301–350  ·  view source on GitHub ↗

* This is the long-hand method of calculating a square root. * The algorithm is as follows: * * 1. Group the digits by 2 from the right. * 2. Over the leftmost group, find the largest single-digit number * whose square is less than that group. * 3. Subtract the result of the previous step (2 or 4, depending) and * bring down the next two-digit group. * 4. For the result R we have so

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

dt_stddevFunction · 0.85

Calls 5

dt_nbits_128Function · 0.85
dt_shift_128Function · 0.85
dt_add_128Function · 0.85
dt_le_128Function · 0.85
dt_subtract_128Function · 0.85

Tested by

no test coverage detected