Lines Matching refs:subtrahend
160 dt_subtract_128(uint64_t *minuend, uint64_t *subtrahend, uint64_t *difference)
164 result[0] = minuend[0] - subtrahend[0];
165 result[1] = minuend[1] - subtrahend[1] -
166 (minuend[0] < subtrahend[0] ? 1 : 0);
225 * We initialize subtrahend by shifting divisor left as far as possible. We
226 * loop, comparing subtrahend to dividend: if subtrahend is smaller, we
228 * subtrahend right by one bit for the next comparison.
235 uint64_t subtrahend[2];
248 subtrahend[0] = divisor;
249 subtrahend[1] = 0;
256 dt_shift_128(subtrahend, 128 - log);
260 if (dt_ge_128(remainder, subtrahend)) {
261 dt_subtract_128(remainder, subtrahend, remainder);
266 dt_shift_128(subtrahend, -1);