Lines Matching full:divisor
24 void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long,
26 // It does not make sense to calculate magic and shift for zero divisor.
27 DCHECK_NE(divisor, 0);
34 * where divisor(d) >= 2.
36 * where divisor(d) <= -2.
57 uint64_t abs_d = (divisor >= 0) ? divisor : -divisor;
58 uint64_t sign_bit = is_long ? static_cast<uint64_t>(divisor) >> 63 :
59 static_cast<uint32_t>(divisor) >> 31;
68 * To avoid handling both positive and negative divisor, "Hacker's Delight"
89 *magic = (divisor > 0) ? (quotient2 + 1) : (-quotient2 - 1);