Lines Matching refs:cut

504   Int	cut, out;		   /* .. */  in decNumberFromString()  local
668 cut=d-(up-res)*DECDPUN; /* digits in top unit */ in decNumberFromString()
673 cut--; in decNumberFromString()
674 if (cut>0) continue; /* more for this unit */ in decNumberFromString()
677 cut=DECDPUN; /* .. */ in decNumberFromString()
3459 uInt cut=DECDPUN; /* downcounter through unit */ in decNumberGetBCD() local
3463 cut--; in decNumberGetBCD()
3464 if (cut>0) continue; /* more in this unit */ in decNumberGetBCD()
3467 cut=DECDPUN; in decNumberGetBCD()
3493 Int cut=MSUDIGITS(n); /* [faster than remainder] */ in decNumberSetBCD() local
3496 for (; cut>0; ub++, cut--) *up=X10(*up)+*ub; in decNumberSetBCD()
3497 cut=DECDPUN; /* next Unit has all digits */ in decNumberSetBCD()
3619 Int cut; /* for counting digits in a Unit */ in decToString() local
3653 cut=MSUDIGITS(dn->digits); /* [faster than remainder] */ in decToString()
3654 cut--; /* power of ten for digit */ in decToString()
3659 for (; cut>=0; c++, cut--) TODIGIT(u, cut, c, pow); in decToString()
3660 cut=DECDPUN-1; /* next Unit has all digits */ in decToString()
3700 for (; pre>0; pre--, c++, cut--) { in decToString()
3701 if (cut<0) { /* need new Unit */ in decToString()
3704 cut=DECDPUN-1; in decToString()
3707 TODIGIT(u, cut, c, pow); in decToString()
3711 for (;; c++, cut--) { in decToString()
3712 if (cut<0) { /* need new Unit */ in decToString()
3715 cut=DECDPUN-1; in decToString()
3718 TODIGIT(u, cut, c, pow); in decToString()
3727 for (; ; c++, cut--) { in decToString()
3728 if (cut<0) { /* need new Unit */ in decToString()
3731 cut=DECDPUN-1; in decToString()
3734 TODIGIT(u, cut, c, pow); in decToString()
3751 for (cut=9; cut>=0; cut--) { in decToString()
3752 TODIGIT(u, cut, c, pow); in decToString()
4250 Int shift, cut; /* .. */ in decDivideOp() local
4479 if (exponent<0) cut=-exponent; in decDivideOp()
4480 else cut=DECDPUN-exponent%DECDPUN; in decDivideOp()
4481 decShiftToLeast(var1, var1units, cut); in decDivideOp()
4482 exponent+=cut; /* maintain numerical value */ in decDivideOp()
4483 var1initpad-=cut; /* .. and reduce padding */ in decDivideOp()
4485 for (u=msu1; cut>=DECDPUN; cut-=DECDPUN, u--) *u=0; in decDivideOp()
6588 uInt cut; /* .. */ local
6605 cut=1; /* digit (1-DECDPUN) in Unit */
6610 uInt quot=QUOT10(*up, cut);
6611 if ((*up-quot*powers[cut])!=0) break; /* found non-0 digit */
6613 if (*up%powers[cut]!=0) break; /* found non-0 digit */
6623 cut++; /* next power */
6624 if (cut>DECDPUN) { /* need new Unit */
6626 cut=1;
6681 Int cut; /* odd 0's to add */ local
6693 cut=DECDPUN-MSUDIGITS(shift); /* where to slice */
6694 if (cut==0) { /* unit-boundary case */
6702 uInt quot=QUOT10(*source, cut);
6703 uInt rem=*source-quot*powers[cut];
6706 uInt rem=*source%powers[cut];
6707 next+=*source/powers[cut];
6710 next=rem*powers[DECDPUN-cut]; /* save remainder for next Unit */
6737 Int cut, count; /* work */ local
6747 cut=MSUDIGITS(shift);
6748 if (cut==DECDPUN) { /* unit-boundary case; easy */
6755 up=uar+D2U(shift-cut); /* source; correct to whole Units */
6758 quot=QUOT10(*up, cut);
6760 quot=*up/powers[cut];
6764 count-=(DECDPUN-cut);
6769 quot=QUOT10(quot, cut);
6770 rem=*up-quot*powers[cut];
6772 rem=quot%powers[cut];
6773 quot=quot/powers[cut];
6775 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
6776 count-=cut;
6886 uInt cut; /* cut point in Unit */ local
6944 cut=discard-(count-DECDPUN)-1;
6945 if (cut==DECDPUN-1) { /* unit-boundary case (fast) */
6972 if (cut==0) quot=*up; /* is at bottom of unit */
6975 quot=QUOT10(*up, cut);
6976 rem=*up-quot*powers[cut];
6978 rem=*up%powers[cut];
6979 quot=*up/powers[cut];
6996 cut++; /* update cut */
7010 count-=(DECDPUN-cut);
7015 quot=QUOT10(quot, cut);
7016 rem=*up-quot*powers[cut];
7018 rem=quot%powers[cut];
7019 quot=quot/powers[cut];
7021 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
7022 count-=cut;
7627 Int cut; /* work */ local
7639 cut=MSUDIGITS(dn->digits-drop); /* digits to be in use in msu */
7640 if (cut!=DECDPUN) *msu%=powers[cut]; /* clear left digits */
7810 Int cut; /* .. */ local
7837 for (cut=DECDPUN-1; cut>=0; cut--) {
7838 d=u/powers[cut];
7839 u-=d*powers[cut];