Lines Matching refs:powers

191 #define powers      DECPOWERS      /* old internal name  */  macro
420 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToInt32()
456 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToUInt32()
853 if (a&b&1) *uc=*uc+(Unit)powers[i]; /* effect AND */ in uprv_decNumberAnd()
1243 if ((~a)&1) *uc=*uc+(Unit)powers[i]; /* effect INVERT */ in uprv_decNumberInvert()
1867 if ((a|b)&1) *uc=*uc+(Unit)powers[i]; /* effect OR */ in uprv_decNumberOr()
2554 uInt save=res->lsu[0]%powers[shift]; /* save low digit(s) */ in uprv_decNumberRotate()
2557 uInt rem=save%powers[shift-msudigits];/* split save */ in uprv_decNumberRotate()
2558 *msumax=(Unit)(save/powers[shift-msudigits]); /* and insert */ in uprv_decNumberRotate()
2560 +(Unit)(rem*powers[DECDPUN-(shift-msudigits)]); /* .. */ in uprv_decNumberRotate()
2563 *msumax=*msumax+(Unit)(save*powers[msudigits-shift]); /* [maybe *1] */ in uprv_decNumberRotate()
2574 uInt save=res->lsu[0]%powers[shift]; /* save low digit(s) */ in uprv_decNumberRotate()
2576 *msumax=*msumax+(Unit)(save*powers[msudigits]); in uprv_decNumberRotate()
3297 if ((a^b)&1) *uc=*uc+(Unit)powers[i]; /* effect XOR */ in uprv_decNumberXor()
3982 partial<(Int)powers[lhs->digits])) { /* .. */ in decAddOp()
4050 mult=powers[padding-(rhsshift*DECDPUN)]; /* .. this by multiplication */ in decAddOp()
4503 for (pow=&powers[1]; *msu1>=*pow; pow++) exponent--; in decDivideOp()
4504 for (pow=&powers[1]; *msu2>=*pow; pow++) exponent++; in decDivideOp()
4608 for (pow=&powers[1]; thisunit>=*pow; pow++) accdigits++; in decDivideOp()
4664 *powers[drop+1])!=0) break; /* found non-0 digit */ in decDivideOp()
4666 if (lsu%powers[drop+1]!=0) break; /* found non-0 digit */ in decDivideOp()
4778 if (*up==powers[quotdigits]-1) allnines=1; in decDivideOp()
4797 expunits, accnext, -(Int)powers[exprem]); in decDivideOp()
5030 *lip+=*cup*powers[p]; in decMultiplyOp()
5035 *rip+=*cup*powers[p]; in decMultiplyOp()
5496 Int n=powers[h]; /* always positive */ in decExpOp()
6319 -(Int)powers[exprem]);
6659 if ((*up-quot*powers[cut])!=0) break; /* found non-0 digit */
6661 if (*up%powers[cut]!=0) break; /* found non-0 digit */
6734 *uar=(Unit)(*uar*powers[shift]);
6751 uInt rem=*source-quot*powers[cut];
6754 uInt rem=*source%powers[cut];
6755 next+=*source/powers[cut];
6758 next=rem*powers[DECDPUN-cut]; /* save remainder for next Unit */
6808 quot=*up/powers[cut];
6818 rem=*up-quot*powers[cut];
6820 rem=quot%powers[cut];
6821 quot=quot/powers[cut];
6823 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
6994 Unit half=(Unit)powers[DECDPUN]>>1;
7025 rem=*up-quot*powers[cut];
7027 rem=*up%powers[cut];
7028 quot=*up/powers[cut];
7065 rem=*up-quot*powers[cut];
7067 rem=quot%powers[cut];
7068 quot=quot/powers[cut];
7070 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
7205 if (*up!=powers[count]-1) break; /* not still 9s */
7207 *up=(Unit)powers[count-1]; /* here 999 -> 100 etc. */
7229 if (*up!=powers[count-1]) break; /* not 100.. */
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;
7245 *sup=(Unit)powers[count-1]-1; /* here 999.. in msu -> 99.. */
7445 *up=(Unit)(powers[count]-1);
7621 rem=*up-theInt*powers[count];
7623 rem=*up%powers[count]; /* slice off discards */
7624 theInt=*up/powers[count];
7641 theInt+=*up*powers[got];
7645 if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11;
7689 if (cut!=DECDPUN) *msu%=powers[cut]; /* clear left digits */
7837 for (pow=&powers[4]; *up>=*pow; pow++) digits++;
7887 d=u/powers[cut];
7888 u-=d*powers[cut];
8052 maxuint=powers[d]-1;
8053 if (dn->digits>1 && *up<powers[d-1]) {