Lines Matching full:den
257 * @den: The denominator (divisor).
268 static u64 vc7_128_div_64_to_64(u64 numhi, u64 numlo, u64 den, u64 *r) in vc7_128_div_64_to_64() argument
303 if (numhi >= den) { in vc7_128_div_64_to_64()
310 * Determine the normalization factor. We multiply den by this, so that in vc7_128_div_64_to_64()
316 * numhi < den. The expression (-shift & 63) is the same as (64 - in vc7_128_div_64_to_64()
322 shift = __builtin_clzll(den); in vc7_128_div_64_to_64()
323 den <<= shift; in vc7_128_div_64_to_64()
334 den1 = (u32)(den >> 32); in vc7_128_div_64_to_64()
335 den0 = (u32)(den & 0xFFFFFFFFu); in vc7_128_div_64_to_64()
346 qhat -= (c1 - c2 > den) ? 2 : 1; in vc7_128_div_64_to_64()
350 rem = numhi * b + num1 - q1 * den; in vc7_128_div_64_to_64()
360 qhat -= (c1 - c2 > den) ? 2 : 1; in vc7_128_div_64_to_64()
365 *r = (rem * b + num0 - q0 * den) >> shift; in vc7_128_div_64_to_64()