Lines Matching refs:up
380 Unit *up; /* work pointer */ in uprv_decNumberFromUInt32() local
383 for (up=dn->lsu; uin>0; up++) { in uprv_decNumberFromUInt32()
384 *up=(Unit)(uin%(DECDPUNMAX+1)); in uprv_decNumberFromUInt32()
387 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in uprv_decNumberFromUInt32()
410 const Unit *up; /* .. */ in uprv_decNumberToInt32() local
412 up=dn->lsu; /* -> lsu */ in uprv_decNumberToInt32()
413 lo=*up; /* get 1 to 9 digits */ in uprv_decNumberToInt32()
418 up++; in uprv_decNumberToInt32()
420 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToInt32()
446 const Unit *up; /* .. */ in uprv_decNumberToUInt32() local
448 up=dn->lsu; /* -> lsu */ in uprv_decNumberToUInt32()
449 lo=*up; /* get 1 to 9 digits */ in uprv_decNumberToUInt32()
454 up++; in uprv_decNumberToUInt32()
456 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToUInt32()
523 Unit *up; /* .. */ in uprv_decNumberFromString() local
688 up=res+D2U(d)-1; /* -> msu */ in uprv_decNumberFromString()
689 cut=d-(up-res)*DECDPUN; /* digits in top unit */ in uprv_decNumberFromString()
696 *up=(Unit)out; /* write unit */ in uprv_decNumberFromString()
697 up--; /* prepare for unit below.. */ in uprv_decNumberFromString()
701 *up=(Unit)out; /* write lsu */ in uprv_decNumberFromString()
705 up=res; /* -> lsu */ in uprv_decNumberFromString()
708 *up=(Unit)((Int)*c-(Int)'0'); in uprv_decNumberFromString()
709 up++; in uprv_decNumberFromString()
3488 const Unit *up=dn->lsu; /* Unit pointer, -> lsu */ in uprv_decNumberGetBCD() local
3491 for (; ub>=bcd; ub--, up++) *ub=*up; in uprv_decNumberGetBCD()
3493 uInt u=*up; /* work */ in uprv_decNumberGetBCD()
3500 up++; in uprv_decNumberGetBCD()
3501 u=*up; in uprv_decNumberGetBCD()
3521 Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [target pointer] */ in uprv_decNumberSetBCD() local
3525 for (; ub<bcd+n; ub++, up--) *up=*ub; in uprv_decNumberSetBCD()
3529 for (;up>=dn->lsu; up--) { /* each Unit from msu */ in uprv_decNumberSetBCD()
3530 *up=0; /* will take <=DECDPUN digits */ in uprv_decNumberSetBCD()
3531 for (; cut>0; ub++, cut--) *up=X10(*up)+*ub; in uprv_decNumberSetBCD()
3656 const Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [input pointer] */ in decToString() local
3692 for (;up>=dn->lsu; up--) { /* each Unit from msu */ in decToString()
3693 u=*up; /* contains DECDPUN digits to lay out */ in decToString()
3732 u=*up; in decToString()
3737 if (up==dn->lsu) break; /* out of input digits (pre>digits) */ in decToString()
3738 up--; in decToString()
3740 u=*up; in decToString()
3748 if (up==dn->lsu) break; /* out of input digits */ in decToString()
3749 up--; in decToString()
3751 u=*up; in decToString()
3764 if (up==dn->lsu) break; /* out of input digits */ in decToString()
3765 up--; in decToString()
3767 u=*up; in decToString()
4737 Unit *up; /* .. */ in decDivideOp() local
4756 for (up=accnext; up<accnext+tarunits; up++) { in decDivideOp()
4758 half=*up & 0x01; in decDivideOp()
4759 *up/=2; /* [shift] */ in decDivideOp()
4761 *(up-1)+=(DECDPUNMAX+1)/2; in decDivideOp()
4773 for (up=quotlsu; ; up++) { in decDivideOp()
4775 if (*up!=DECDPUNMAX) break;/* non-nines */ in decDivideOp()
4778 if (*up==powers[quotdigits]-1) allnines=1; in decDivideOp()
4919 Unit *up; /* .. */ in decMultiplyOp() local
5093 for (lp=zacc, up=acc; lp<zacc+iacc; lp++) { in decMultiplyOp()
5095 for (p=0; p<FASTDIGS-DECDPUN; p+=DECDPUN, up++) { in decMultiplyOp()
5097 *up=(Unit)(item-(part*(DECDPUNMAX+1))); in decMultiplyOp()
5100 *up=(Unit)item; up++; /* [final needs no division] */ in decMultiplyOp()
5102 accunits=up-acc; /* count of units */ in decMultiplyOp()
6637 Unit *up; /* -> current Unit */ local
6654 up=dn->lsu; /* -> current Unit */
6658 uInt quot=QUOT10(*up, cut);
6659 if ((*up-quot*powers[cut])!=0) break; /* found non-0 digit */
6661 if (*up%powers[cut]!=0) break; /* found non-0 digit */
6673 up++;
6784 Unit *target, *up; /* work */ local
6797 up=uar+D2U(shift);
6798 for (; up<uar+units; target++, up++) *target=*up;
6803 up=uar+D2U(shift-cut); /* source; correct to whole Units */
6806 quot=QUOT10(*up, cut);
6808 quot=*up/powers[cut];
6814 up++;
6815 quot=*up;
6818 rem=*up-quot*powers[cut];
6935 const Unit *up; /* work */ local
6947 up=lsu;
6948 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
6949 *target=*up;
6967 for (up=lsu; count>0; up++, count-=DECDPUN) if (*up!=0) { /* found non-0 */
6985 for (up=lsu;; up++) {
6988 if (*up!=0) *residue=1;
6996 if (*up>=half) {
6997 if (*up>half) *residue=7;
7001 if (*up!=0) *residue=3; /* [else is 0, leave as sticky bit] */
7010 up++; /* move to next */
7012 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
7013 *target=*up;
7020 if (cut==0) quot=*up; /* is at bottom of unit */
7024 quot=QUOT10(*up, cut);
7025 rem=*up-quot*powers[cut];
7027 rem=*up%powers[cut];
7028 quot=*up/powers[cut];
7061 up++;
7062 quot=*up;
7065 rem=*up-quot*powers[cut];
7200 Unit *up; /* work */ local
7202 for (up=dn->lsu; ; up++) {
7205 if (*up!=powers[count]-1) break; /* not still 9s */
7207 *up=(Unit)powers[count-1]; /* here 999 -> 100 etc. */
7208 for (up=up-1; up>=dn->lsu; up--) *up=0; /* others all to 0 */
7217 if (*up!=DECDPUNMAX) break; /* not still 9s */
7224 Unit *up, *sup; /* work */ local
7226 for (up=dn->lsu; ; up++) {
7229 if (*up!=powers[count-1]) break; /* not 100.. */
7231 sup=up; /* save msu pointer */
7232 *up=(Unit)powers[count]-1; /* here 100 in msu -> 999 */
7234 for (up=up-1; up>=dn->lsu; up--) *up=(Unit)powers[DECDPUN]-1;
7255 if (*up!=0) break; /* not still 0s */
7438 Unit *up; /* work */ local
7442 for (up=dn->lsu; ; up++) {
7443 if (count>DECDPUN) *up=DECDPUNMAX; /* unit full o'nines */
7445 *up=(Unit)(powers[count]-1);
7587 const Unit *up; /* work */ local
7602 up=dn->lsu; /* ready for lsu */
7611 for (; count>=DECDPUN; up++) {
7612 if (*up!=0) return BADINT; /* non-zero Unit to discard */
7620 theInt=QUOT10(*up, count);
7621 rem=*up-theInt*powers[count];
7623 rem=*up%powers[count]; /* slice off discards */
7624 theInt=*up/powers[count];
7629 up++; /* ready for next */
7635 if (got==0) {theInt=*up; got+=DECDPUN; up++;} /* ensure lsu is there */
7640 for (; got<ilength; up++) {
7641 theInt+=*up*powers[got];
7645 if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11;
7811 Unit *up=uar+(len-1); /* -> msu */ local
7821 for (; up>=uar; up--) {
7822 if (*up==0) { /* unit is all 0s */
7828 if (*up<10) break; /* is 1-9 */
7831 if (*up<100) break; /* is 10-99 */
7834 if (*up<1000) break; /* is 100-999 */
7837 for (pow=&powers[4]; *up>=*pow; pow++) digits++;
7857 const Unit *up; /* work */ local
7881 up=dn->lsu+D2U(dn->digits)-1; /* msu */
7882 printf("%ld", (LI)*up);
7883 for (up=up-1; up>=dn->lsu; up--) {
7884 u=*up;
8000 const Unit *up; /* work */ local
8049 for (up=dn->lsu; d>0; up++) {
8053 if (dn->digits>1 && *up<powers[d-1]) {
8060 if (*up>maxuint) {
8063 (LI)*up, (LI)dn->digits, (LI)(up-dn->lsu), (LI)maxuint);