Lines Matching refs:uc
635 int ratio(uc, c)
636 ulg uc, c;
640 if (uc == 0)
642 if (uc > 2000000L) { /* risk signed overflow if multiply numerator */
643 denom = uc / 1000L;
644 return ((uc >= c) ?
645 (int) ((uc-c + (denom>>1)) / denom) :
646 -((int) ((c-uc + (denom>>1)) / denom)));
648 denom = uc;
649 return ((uc >= c) ?
650 (int) ((1000L*(uc-c) + (denom>>1)) / denom) :
651 -((int) ((1000L*(c-uc) + (denom>>1)) / denom)));