Lines Matching refs:divisor
243 * divisor - 32-bit divisor
257 u32 divisor, u64 *out_quotient, u32 *out_remainder)
265 /* Always check for a zero divisor */
267 if (divisor == 0) {
278 ACPI_DIV_64_BY_32(0, dividend_ovl.part.hi, divisor,
281 ACPI_DIV_64_BY_32(remainder32, dividend_ovl.part.lo, divisor,
316 union uint64_overlay divisor;
327 /* Always check for a zero divisor */
334 divisor.full = in_divisor;
336 if (divisor.part.hi == 0) {
338 * 1) Simplest case is where the divisor is 32 bits, we can
347 ACPI_DIV_64_BY_32(0, dividend.part.hi, divisor.part.lo,
350 ACPI_DIV_64_BY_32(partial1, dividend.part.lo, divisor.part.lo,
356 * 2) The general case where the divisor is a full 64 bits
361 normalized_divisor = divisor;
363 /* Normalize the operands (shift until the divisor is < 32 bits) */
384 partial1 = quotient.part.lo * divisor.part.hi;
385 partial2.full = (u64) quotient.part.lo * divisor.part.lo;
396 remainder.full -= divisor.full;
400 remainder.full -= divisor.full;
445 u32 divisor, u64 *out_quotient, u32 *out_remainder)
450 /* Always check for a zero divisor */
452 if (divisor == 0) {
460 *out_quotient = in_dividend / divisor;
463 *out_remainder = (u32) (in_dividend % divisor);
475 /* Always check for a zero divisor */