• Home
  • Raw
  • Download

Lines Matching refs:up

382   Unit *up;                             /* work pointer  */  in uprv_decNumberFromUInt32()  local
385 for (up=dn->lsu; uin>0; up++) { in uprv_decNumberFromUInt32()
386 *up=(Unit)(uin%(DECDPUNMAX+1)); in uprv_decNumberFromUInt32()
389 dn->digits=decGetDigits(dn->lsu, static_cast<int32_t>(up - dn->lsu)); in uprv_decNumberFromUInt32()
412 const Unit *up; /* .. */ in uprv_decNumberToInt32() local
414 up=dn->lsu; /* -> lsu */ in uprv_decNumberToInt32()
415 lo=*up; /* get 1 to 9 digits */ in uprv_decNumberToInt32()
420 up++; in uprv_decNumberToInt32()
422 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToInt32()
448 const Unit *up; /* .. */ in uprv_decNumberToUInt32() local
450 up=dn->lsu; /* -> lsu */ in uprv_decNumberToUInt32()
451 lo=*up; /* get 1 to 9 digits */ in uprv_decNumberToUInt32()
456 up++; in uprv_decNumberToUInt32()
458 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToUInt32()
525 Unit *up; /* .. */ in uprv_decNumberFromString() local
692 up=res+D2U(d)-1; /* -> msu */ in uprv_decNumberFromString()
693 cut=d-(up-res)*DECDPUN; /* digits in top unit */ in uprv_decNumberFromString()
700 *up=(Unit)out; /* write unit */ in uprv_decNumberFromString()
701 up--; /* prepare for unit below.. */ in uprv_decNumberFromString()
705 *up=(Unit)out; /* write lsu */ in uprv_decNumberFromString()
709 up=res; /* -> lsu */ in uprv_decNumberFromString()
712 *up=(Unit)((Int)*c-(Int)'0'); in uprv_decNumberFromString()
713 up++; in uprv_decNumberFromString()
3492 const Unit *up=dn->lsu; /* Unit pointer, -> lsu */ in uprv_decNumberGetBCD() local
3495 for (; ub>=bcd; ub--, up++) *ub=*up; in uprv_decNumberGetBCD()
3497 uInt u=*up; /* work */ in uprv_decNumberGetBCD()
3504 up++; in uprv_decNumberGetBCD()
3505 u=*up; in uprv_decNumberGetBCD()
3525 Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [target pointer] */ in uprv_decNumberSetBCD() local
3529 for (; ub<bcd+n; ub++, up--) *up=*ub; in uprv_decNumberSetBCD()
3533 for (;up>=dn->lsu; up--) { /* each Unit from msu */ in uprv_decNumberSetBCD()
3534 *up=0; /* will take <=DECDPUN digits */ in uprv_decNumberSetBCD()
3535 for (; cut>0; ub++, cut--) *up=X10(*up)+*ub; in uprv_decNumberSetBCD()
3660 const Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [input pointer] */ in decToString() local
3696 for (;up>=dn->lsu; up--) { /* each Unit from msu */ in decToString()
3697 u=*up; /* contains DECDPUN digits to lay out */ in decToString()
3736 u=*up; in decToString()
3741 if (up==dn->lsu) break; /* out of input digits (pre>digits) */ in decToString()
3742 up--; in decToString()
3744 u=*up; in decToString()
3752 if (up==dn->lsu) break; /* out of input digits */ in decToString()
3753 up--; in decToString()
3755 u=*up; in decToString()
3768 if (up==dn->lsu) break; /* out of input digits */ in decToString()
3769 up--; in decToString()
3771 u=*up; in decToString()
4741 Unit *up; /* .. */ in decDivideOp() local
4760 for (up=accnext; up<accnext+tarunits; up++) { in decDivideOp()
4762 half=*up & 0x01; in decDivideOp()
4763 *up/=2; /* [shift] */ in decDivideOp()
4765 *(up-1)+=(DECDPUNMAX+1)/2; in decDivideOp()
4777 for (up=quotlsu; ; up++) { in decDivideOp()
4779 if (*up!=DECDPUNMAX) break;/* non-nines */ in decDivideOp()
4782 if (*up==powers[quotdigits]-1) allnines=1; in decDivideOp()
4923 Unit *up; /* .. */ in decMultiplyOp() local
5097 for (lp=zacc, up=acc; lp<zacc+iacc; lp++) { in decMultiplyOp()
5099 for (p=0; p<FASTDIGS-DECDPUN; p+=DECDPUN, up++) { in decMultiplyOp()
5101 *up=(Unit)(item-(part*(DECDPUNMAX+1))); in decMultiplyOp()
5104 *up=(Unit)item; up++; /* [final needs no division] */ in decMultiplyOp()
5106 accunits = static_cast<int32_t>(up-acc); /* count of units */ in decMultiplyOp()
6641 Unit *up; /* -> current Unit */ local
6658 up=dn->lsu; /* -> current Unit */
6662 uInt quot=QUOT10(*up, cut);
6663 if ((*up-quot*powers[cut])!=0) break; /* found non-0 digit */
6665 if (*up%powers[cut]!=0) break; /* found non-0 digit */
6677 up++;
6788 Unit *target, *up; /* work */ local
6801 up=uar+D2U(shift);
6802 for (; up<uar+units; target++, up++) *target=*up;
6807 up=uar+D2U(shift-cut); /* source; correct to whole Units */
6810 quot=QUOT10(*up, cut);
6812 quot=*up/powers[cut];
6818 up++;
6819 quot=*up;
6822 rem=*up-quot*powers[cut];
6939 const Unit *up; /* work */ local
6951 up=lsu;
6952 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
6953 *target=*up;
6971 for (up=lsu; count>0; up++, count-=DECDPUN) if (*up!=0) { /* found non-0 */
6989 for (up=lsu;; up++) {
6992 if (*up!=0) *residue=1;
7000 if (*up>=half) {
7001 if (*up>half) *residue=7;
7005 if (*up!=0) *residue=3; /* [else is 0, leave as sticky bit] */
7014 up++; /* move to next */
7016 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
7017 *target=*up;
7024 if (cut==0) quot=*up; /* is at bottom of unit */
7028 quot=QUOT10(*up, cut);
7029 rem=*up-quot*powers[cut];
7031 rem=*up%powers[cut];
7032 quot=*up/powers[cut];
7065 up++;
7066 quot=*up;
7069 rem=*up-quot*powers[cut];
7204 Unit *up; /* work */ local
7206 for (up=dn->lsu; ; up++) {
7209 if (*up!=powers[count]-1) break; /* not still 9s */
7211 *up=(Unit)powers[count-1]; /* here 999 -> 100 etc. */
7212 for (up=up-1; up>=dn->lsu; up--) *up=0; /* others all to 0 */
7221 if (*up!=DECDPUNMAX) break; /* not still 9s */
7228 Unit *up, *sup; /* work */ local
7230 for (up=dn->lsu; ; up++) {
7233 if (*up!=powers[count-1]) break; /* not 100.. */
7235 sup=up; /* save msu pointer */
7236 *up=(Unit)powers[count]-1; /* here 100 in msu -> 999 */
7238 for (up=up-1; up>=dn->lsu; up--) *up=(Unit)powers[DECDPUN]-1;
7259 if (*up!=0) break; /* not still 0s */
7442 Unit *up; /* work */ local
7446 for (up=dn->lsu; ; up++) {
7447 if (count>DECDPUN) *up=DECDPUNMAX; /* unit full o'nines */
7449 *up=(Unit)(powers[count]-1);
7591 const Unit *up; /* work */ local
7606 up=dn->lsu; /* ready for lsu */
7615 for (; count>=DECDPUN; up++) {
7616 if (*up!=0) return BADINT; /* non-zero Unit to discard */
7624 theInt=QUOT10(*up, count);
7625 rem=*up-theInt*powers[count];
7627 rem=*up%powers[count]; /* slice off discards */
7628 theInt=*up/powers[count];
7633 up++; /* ready for next */
7639 if (got==0) {theInt=*up; got+=DECDPUN; up++;} /* ensure lsu is there */
7644 for (; got<ilength; up++) {
7645 theInt+=*up*powers[got];
7649 if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11;
7815 Unit *up=uar+(len-1); /* -> msu */ local
7825 for (; up>=uar; up--) {
7826 if (*up==0) { /* unit is all 0s */
7832 if (*up<10) break; /* is 1-9 */
7835 if (*up<100) break; /* is 10-99 */
7838 if (*up<1000) break; /* is 100-999 */
7841 for (pow=&powers[4]; *up>=*pow; pow++) digits++;
7861 const Unit *up; /* work */ local
7885 up=dn->lsu+D2U(dn->digits)-1; /* msu */
7886 printf("%ld", (LI)*up);
7887 for (up=up-1; up>=dn->lsu; up--) {
7888 u=*up;
8004 const Unit *up; /* work */ local
8053 for (up=dn->lsu; d>0; up++) {
8057 if (dn->digits>1 && *up<powers[d-1]) {
8064 if (*up>maxuint) {
8067 (LI)*up, (LI)dn->digits, (LI)(up-dn->lsu), (LI)maxuint);