Lines Matching refs:d
16 static __inline fixuint_t __udivXi3(fixuint_t n, fixuint_t d) {
18 // d == 0 cases are unspecified.
19 unsigned sr = (d ? clz(d) : N) - (n ? clz(n) : N);
21 if (sr > N - 1) // n < d
23 if (sr == N - 1) // d == 1
35 // if (r >= d) r -= d, carry = 1;
36 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);
38 r -= d & s;
45 static __inline fixuint_t __umodXi3(fixuint_t n, fixuint_t d) {
47 // d == 0 cases are unspecified.
48 unsigned sr = (d ? clz(d) : N) - (n ? clz(n) : N);
50 if (sr > N - 1) // n < d
52 if (sr == N - 1) // d == 1
64 // if (r >= d) r -= d, carry = 1;
65 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);
67 r -= d & s;