Lines Matching refs:num
49 div(num, denom)
50 int num, denom;
54 r.quot = num / denom;
55 r.rem = num % denom;
66 * sign of num; if both are negative and r.quot has been
68 * have the opposite sign of num). These are considered
71 * If both are num and denom are positive, r will always
75 * if num >= 0, but r.rem < 0, we got the wrong answer.
79 if (num >= 0 && r.rem < 0) {
87 ldiv(num, denom)
88 long num, denom;
94 r.quot = num / denom;
95 r.rem = num % denom;
96 if (num >= 0 && r.rem < 0) {