• 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
690 up=res+D2U(d)-1; /* -> msu */ in uprv_decNumberFromString()
691 cut=d-(up-res)*DECDPUN; /* digits in top unit */ in uprv_decNumberFromString()
698 *up=(Unit)out; /* write unit */ in uprv_decNumberFromString()
699 up--; /* prepare for unit below.. */ in uprv_decNumberFromString()
703 *up=(Unit)out; /* write lsu */ in uprv_decNumberFromString()
707 up=res; /* -> lsu */ in uprv_decNumberFromString()
710 *up=(Unit)((Int)*c-(Int)'0'); in uprv_decNumberFromString()
711 up++; in uprv_decNumberFromString()
3490 const Unit *up=dn->lsu; /* Unit pointer, -> lsu */ in uprv_decNumberGetBCD() local
3493 for (; ub>=bcd; ub--, up++) *ub=*up; in uprv_decNumberGetBCD()
3495 uInt u=*up; /* work */ in uprv_decNumberGetBCD()
3502 up++; in uprv_decNumberGetBCD()
3503 u=*up; in uprv_decNumberGetBCD()
3523 Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [target pointer] */ in uprv_decNumberSetBCD() local
3527 for (; ub<bcd+n; ub++, up--) *up=*ub; in uprv_decNumberSetBCD()
3531 for (;up>=dn->lsu; up--) { /* each Unit from msu */ in uprv_decNumberSetBCD()
3532 *up=0; /* will take <=DECDPUN digits */ in uprv_decNumberSetBCD()
3533 for (; cut>0; ub++, cut--) *up=X10(*up)+*ub; in uprv_decNumberSetBCD()
3658 const Unit *up=dn->lsu+D2U(dn->digits)-1; /* -> msu [input pointer] */ in decToString() local
3694 for (;up>=dn->lsu; up--) { /* each Unit from msu */ in decToString()
3695 u=*up; /* contains DECDPUN digits to lay out */ in decToString()
3734 u=*up; in decToString()
3739 if (up==dn->lsu) break; /* out of input digits (pre>digits) */ in decToString()
3740 up--; in decToString()
3742 u=*up; in decToString()
3750 if (up==dn->lsu) break; /* out of input digits */ in decToString()
3751 up--; in decToString()
3753 u=*up; in decToString()
3766 if (up==dn->lsu) break; /* out of input digits */ in decToString()
3767 up--; in decToString()
3769 u=*up; in decToString()
4739 Unit *up; /* .. */ in decDivideOp() local
4758 for (up=accnext; up<accnext+tarunits; up++) { in decDivideOp()
4760 half=*up & 0x01; in decDivideOp()
4761 *up/=2; /* [shift] */ in decDivideOp()
4763 *(up-1)+=(DECDPUNMAX+1)/2; in decDivideOp()
4775 for (up=quotlsu; ; up++) { in decDivideOp()
4777 if (*up!=DECDPUNMAX) break;/* non-nines */ in decDivideOp()
4780 if (*up==powers[quotdigits]-1) allnines=1; in decDivideOp()
4921 Unit *up; /* .. */ in decMultiplyOp() local
5095 for (lp=zacc, up=acc; lp<zacc+iacc; lp++) { in decMultiplyOp()
5097 for (p=0; p<FASTDIGS-DECDPUN; p+=DECDPUN, up++) { in decMultiplyOp()
5099 *up=(Unit)(item-(part*(DECDPUNMAX+1))); in decMultiplyOp()
5102 *up=(Unit)item; up++; /* [final needs no division] */ in decMultiplyOp()
5104 accunits = static_cast<int32_t>(up-acc); /* count of units */ in decMultiplyOp()
6639 Unit *up; /* -> current Unit */ local
6656 up=dn->lsu; /* -> current Unit */
6660 uInt quot=QUOT10(*up, cut);
6661 if ((*up-quot*powers[cut])!=0) break; /* found non-0 digit */
6663 if (*up%powers[cut]!=0) break; /* found non-0 digit */
6675 up++;
6786 Unit *target, *up; /* work */ local
6799 up=uar+D2U(shift);
6800 for (; up<uar+units; target++, up++) *target=*up;
6805 up=uar+D2U(shift-cut); /* source; correct to whole Units */
6808 quot=QUOT10(*up, cut);
6810 quot=*up/powers[cut];
6816 up++;
6817 quot=*up;
6820 rem=*up-quot*powers[cut];
6937 const Unit *up; /* work */ local
6949 up=lsu;
6950 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
6951 *target=*up;
6969 for (up=lsu; count>0; up++, count-=DECDPUN) if (*up!=0) { /* found non-0 */
6987 for (up=lsu;; up++) {
6990 if (*up!=0) *residue=1;
6998 if (*up>=half) {
6999 if (*up>half) *residue=7;
7003 if (*up!=0) *residue=3; /* [else is 0, leave as sticky bit] */
7012 up++; /* move to next */
7014 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
7015 *target=*up;
7022 if (cut==0) quot=*up; /* is at bottom of unit */
7026 quot=QUOT10(*up, cut);
7027 rem=*up-quot*powers[cut];
7029 rem=*up%powers[cut];
7030 quot=*up/powers[cut];
7063 up++;
7064 quot=*up;
7067 rem=*up-quot*powers[cut];
7202 Unit *up; /* work */ local
7204 for (up=dn->lsu; ; up++) {
7207 if (*up!=powers[count]-1) break; /* not still 9s */
7209 *up=(Unit)powers[count-1]; /* here 999 -> 100 etc. */
7210 for (up=up-1; up>=dn->lsu; up--) *up=0; /* others all to 0 */
7219 if (*up!=DECDPUNMAX) break; /* not still 9s */
7226 Unit *up, *sup; /* work */ local
7228 for (up=dn->lsu; ; up++) {
7231 if (*up!=powers[count-1]) break; /* not 100.. */
7233 sup=up; /* save msu pointer */
7234 *up=(Unit)powers[count]-1; /* here 100 in msu -> 999 */
7236 for (up=up-1; up>=dn->lsu; up--) *up=(Unit)powers[DECDPUN]-1;
7257 if (*up!=0) break; /* not still 0s */
7440 Unit *up; /* work */ local
7444 for (up=dn->lsu; ; up++) {
7445 if (count>DECDPUN) *up=DECDPUNMAX; /* unit full o'nines */
7447 *up=(Unit)(powers[count]-1);
7589 const Unit *up; /* work */ local
7604 up=dn->lsu; /* ready for lsu */
7613 for (; count>=DECDPUN; up++) {
7614 if (*up!=0) return BADINT; /* non-zero Unit to discard */
7622 theInt=QUOT10(*up, count);
7623 rem=*up-theInt*powers[count];
7625 rem=*up%powers[count]; /* slice off discards */
7626 theInt=*up/powers[count];
7631 up++; /* ready for next */
7637 if (got==0) {theInt=*up; got+=DECDPUN; up++;} /* ensure lsu is there */
7642 for (; got<ilength; up++) {
7643 theInt+=*up*powers[got];
7647 if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11;
7813 Unit *up=uar+(len-1); /* -> msu */ local
7823 for (; up>=uar; up--) {
7824 if (*up==0) { /* unit is all 0s */
7830 if (*up<10) break; /* is 1-9 */
7833 if (*up<100) break; /* is 10-99 */
7836 if (*up<1000) break; /* is 100-999 */
7839 for (pow=&powers[4]; *up>=*pow; pow++) digits++;
7859 const Unit *up; /* work */ local
7883 up=dn->lsu+D2U(dn->digits)-1; /* msu */
7884 printf("%ld", (LI)*up);
7885 for (up=up-1; up>=dn->lsu; up--) {
7886 u=*up;
8002 const Unit *up; /* work */ local
8051 for (up=dn->lsu; d>0; up++) {
8055 if (dn->digits>1 && *up<powers[d-1]) {
8062 if (*up>maxuint) {
8065 (LI)*up, (LI)dn->digits, (LI)(up-dn->lsu), (LI)maxuint);