Lines Matching refs:cut
523 Int cut, out; /* .. */ in uprv_decNumberFromString() local
687 cut=d-(up-res)*DECDPUN; /* digits in top unit */ in uprv_decNumberFromString()
692 cut--; in uprv_decNumberFromString()
693 if (cut>0) continue; /* more for this unit */ in uprv_decNumberFromString()
696 cut=DECDPUN; /* .. */ in uprv_decNumberFromString()
3492 uInt cut=DECDPUN; /* downcounter through unit */ in uprv_decNumberGetBCD() local
3496 cut--; in uprv_decNumberGetBCD()
3497 if (cut>0) continue; /* more in this unit */ in uprv_decNumberGetBCD()
3500 cut=DECDPUN; in uprv_decNumberGetBCD()
3526 Int cut=MSUDIGITS(n); /* [faster than remainder] */ in uprv_decNumberSetBCD() local
3529 for (; cut>0; ub++, cut--) *up=X10(*up)+*ub; in uprv_decNumberSetBCD()
3530 cut=DECDPUN; /* next Unit has all digits */ in uprv_decNumberSetBCD()
3652 Int cut; /* for counting digits in a Unit */ in decToString() local
3686 cut=MSUDIGITS(dn->digits); /* [faster than remainder] */ in decToString()
3687 cut--; /* power of ten for digit */ in decToString()
3692 for (; cut>=0; c++, cut--) TODIGIT(u, cut, c, pow); in decToString()
3693 cut=DECDPUN-1; /* next Unit has all digits */ in decToString()
3733 for (; pre>0; pre--, c++, cut--) { in decToString()
3734 if (cut<0) { /* need new Unit */ in decToString()
3737 cut=DECDPUN-1; in decToString()
3740 TODIGIT(u, cut, c, pow); in decToString()
3744 for (;; c++, cut--) { in decToString()
3745 if (cut<0) { /* need new Unit */ in decToString()
3748 cut=DECDPUN-1; in decToString()
3751 TODIGIT(u, cut, c, pow); in decToString()
3760 for (; ; c++, cut--) { in decToString()
3761 if (cut<0) { /* need new Unit */ in decToString()
3764 cut=DECDPUN-1; in decToString()
3767 TODIGIT(u, cut, c, pow); in decToString()
3784 for (cut=9; cut>=0; cut--) { in decToString()
3785 TODIGIT(u, cut, c, pow); in decToString()
4285 Int shift, cut; /* .. */ in decDivideOp() local
4514 if (exponent<0) cut=-exponent; in decDivideOp()
4515 else cut=DECDPUN-exponent%DECDPUN; in decDivideOp()
4516 decShiftToLeast(var1, var1units, cut); in decDivideOp()
4517 exponent+=cut; /* maintain numerical value */ in decDivideOp()
4518 var1initpad-=cut; /* .. and reduce padding */ in decDivideOp()
4520 for (u=msu1; cut>=DECDPUN; cut-=DECDPUN, u--) *u=0; in decDivideOp()
6634 uInt cut; /* .. */ local
6651 cut=1; /* digit (1-DECDPUN) in Unit */
6656 uInt quot=QUOT10(*up, cut);
6657 if ((*up-quot*powers[cut])!=0) break; /* found non-0 digit */
6659 if (*up%powers[cut]!=0) break; /* found non-0 digit */
6669 cut++; /* next power */
6670 if (cut>DECDPUN) { /* need new Unit */
6672 cut=1;
6727 Int cut; /* odd 0's to add */ local
6739 cut=DECDPUN-MSUDIGITS(shift); /* where to slice */
6740 if (cut==0) { /* unit-boundary case */
6748 uInt quot=QUOT10(*source, cut);
6749 uInt rem=*source-quot*powers[cut];
6752 uInt rem=*source%powers[cut];
6753 next+=*source/powers[cut];
6756 next=rem*powers[DECDPUN-cut]; /* save remainder for next Unit */
6783 Int cut, count; /* work */ local
6793 cut=MSUDIGITS(shift);
6794 if (cut==DECDPUN) { /* unit-boundary case; easy */
6801 up=uar+D2U(shift-cut); /* source; correct to whole Units */
6804 quot=QUOT10(*up, cut);
6806 quot=*up/powers[cut];
6810 count-=(DECDPUN-cut);
6815 quot=QUOT10(quot, cut);
6816 rem=*up-quot*powers[cut];
6818 rem=quot%powers[cut];
6819 quot=quot/powers[cut];
6821 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
6822 count-=cut;
6932 uInt cut; /* cut point in Unit */ local
6990 cut=discard-(count-DECDPUN)-1;
6991 if (cut==DECDPUN-1) { /* unit-boundary case (fast) */
7018 if (cut==0) quot=*up; /* is at bottom of unit */
7021 U_ASSERT(cut >= 0 && cut <= 4);
7022 quot=QUOT10(*up, cut);
7023 rem=*up-quot*powers[cut];
7025 rem=*up%powers[cut];
7026 quot=*up/powers[cut];
7043 cut++; /* update cut */
7057 count-=(DECDPUN-cut);
7062 quot=QUOT10(quot, cut);
7063 rem=*up-quot*powers[cut];
7065 rem=quot%powers[cut];
7066 quot=quot/powers[cut];
7068 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
7069 count-=cut;
7674 Int cut; /* work */ local
7686 cut=MSUDIGITS(dn->digits-drop); /* digits to be in use in msu */
7687 if (cut!=DECDPUN) *msu%=powers[cut]; /* clear left digits */
7857 Int cut; /* .. */ local
7884 for (cut=DECDPUN-1; cut>=0; cut--) {
7885 d=u/powers[cut];
7886 u-=d*powers[cut];