Searched refs:denom (Results 1 - 3 of 3) sorted by relevance

/bionic/libc/stdlib/
H A Ddiv.c37 div(int num, int denom) argument
41 r.quot = num / denom;
42 r.rem = num % denom;
52 * r.rem will have the same sign as denom and the opposite
58 * If both are num and denom are positive, r will always
64 * subtract denom from r.rem.
68 r.rem -= denom;
H A Dldiv.c37 ldiv(long num, long denom) argument
43 r.quot = num / denom;
44 r.rem = num % denom;
47 r.rem -= denom;
H A Dlldiv.c37 lldiv(long long num, long long denom) argument
43 r.quot = num / denom;
44 r.rem = num % denom;
47 r.rem -= denom;

Completed in 56 milliseconds