Lines Matching refs:subtrahend
199 dt_subtract_128(uint64_t *minuend, uint64_t *subtrahend, uint64_t *difference)
203 result[0] = minuend[0] - subtrahend[0];
204 result[1] = minuend[1] - subtrahend[1] -
205 (minuend[0] < subtrahend[0] ? 1 : 0);
264 * We initialize subtrahend by shifting divisor left as far as possible. We
265 * loop, comparing subtrahend to dividend: if subtrahend is smaller, we
267 * subtrahend right by one bit for the next comparison.
274 uint64_t subtrahend[2];
287 subtrahend[0] = divisor;
288 subtrahend[1] = 0;
295 dt_shift_128(subtrahend, 128 - log);
299 if (dt_ge_128(remainder, subtrahend)) {
300 dt_subtract_128(remainder, subtrahend, remainder);
305 dt_shift_128(subtrahend, -1);