powers 340 src/decNumber/decNumber.c for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; powers 373 src/decNumber/decNumber.c for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; powers 752 src/decNumber/decNumber.c if (a&b&1) *uc=*uc+(Unit)powers[i]; // effect AND powers 1112 src/decNumber/decNumber.c if ((~a)&1) *uc=*uc+(Unit)powers[i]; // effect INVERT powers 1708 src/decNumber/decNumber.c if ((a|b)&1) *uc=*uc+(Unit)powers[i]; // effect OR powers 2374 src/decNumber/decNumber.c uInt save=res->lsu[0]%powers[shift]; //-V557 // save low digit(s) powers 2377 src/decNumber/decNumber.c uInt rem=save%powers[shift-msudigits];// split save powers 2378 src/decNumber/decNumber.c *msumax=(Unit)(save/powers[shift-msudigits]); // and insert powers 2380 src/decNumber/decNumber.c +(Unit)(rem*powers[DECDPUN-(shift-msudigits)]); // .. powers 2383 src/decNumber/decNumber.c *msumax=*msumax+(Unit)(save*powers[msudigits-shift]); // [maybe *1] powers 2394 src/decNumber/decNumber.c uInt save=res->lsu[0]%powers[shift]; // save low digit(s) powers 2396 src/decNumber/decNumber.c *msumax=*msumax+(Unit)(save*powers[msudigits]); powers 3091 src/decNumber/decNumber.c if ((a^b)&1) *uc=*uc+(Unit)powers[i]; // effect XOR powers 3740 src/decNumber/decNumber.c partial<(Int)powers[lhs->digits])) { // .. powers 3794 src/decNumber/decNumber.c mult=powers[padding-(rhsshift*DECDPUN)]; // .. this by multiplication powers 4232 src/decNumber/decNumber.c for (pow=&powers[1]; *msu1>=*pow; pow++) exponent--; powers 4233 src/decNumber/decNumber.c for (pow=&powers[1]; *msu2>=*pow; pow++) exponent++; powers 4329 src/decNumber/decNumber.c for (pow=&powers[1]; thisunit>=*pow; pow++) accdigits++; powers 4388 src/decNumber/decNumber.c *powers[drop+1])!=0) break; // found non-0 digit powers 4390 src/decNumber/decNumber.c if (lsu%powers[drop+1]!=0) break; // found non-0 digit powers 4503 src/decNumber/decNumber.c if (*up==powers[quotdigits]-1) allnines=1; powers 4522 src/decNumber/decNumber.c expunits, accnext, -(Int)powers[exprem]); powers 4748 src/decNumber/decNumber.c *lip+=*cup*powers[p]; powers 4753 src/decNumber/decNumber.c *rip+=*cup*powers[p]; powers 5195 src/decNumber/decNumber.c Int n=powers[h]; // always positive powers 6001 src/decNumber/decNumber.c -(Int)powers[exprem]); powers 6329 src/decNumber/decNumber.c if ((*up-quot*powers[cut])!=0) break; // found non-0 digit powers 6331 src/decNumber/decNumber.c if (*up%powers[cut]!=0) break; // found non-0 digit powers 6404 src/decNumber/decNumber.c *uar=(Unit)(*uar*powers[shift]); powers 6421 src/decNumber/decNumber.c uInt rem=*source-quot*powers[cut]; powers 6424 src/decNumber/decNumber.c uInt rem=*source%powers[cut]; powers 6425 src/decNumber/decNumber.c next+=*source/powers[cut]; powers 6428 src/decNumber/decNumber.c next=rem*powers[DECDPUN-cut]; // save remainder for next Unit powers 6478 src/decNumber/decNumber.c quot=*up/powers[cut]; powers 6488 src/decNumber/decNumber.c rem=*up-quot*powers[cut]; powers 6490 src/decNumber/decNumber.c rem=quot%powers[cut]; powers 6491 src/decNumber/decNumber.c quot=quot/powers[cut]; powers 6493 src/decNumber/decNumber.c *target=(Unit)(*target+rem*powers[DECDPUN-cut]); powers 6664 src/decNumber/decNumber.c Unit half=(Unit)powers[DECDPUN]>>1; powers 6694 src/decNumber/decNumber.c rem=*up-quot*powers[cut]; powers 6696 src/decNumber/decNumber.c rem=*up%powers[cut]; powers 6697 src/decNumber/decNumber.c quot=*up/powers[cut]; powers 6734 src/decNumber/decNumber.c rem=*up-quot*powers[cut]; powers 6736 src/decNumber/decNumber.c rem=quot%powers[cut]; powers 6737 src/decNumber/decNumber.c quot=quot/powers[cut]; powers 6739 src/decNumber/decNumber.c *target=(Unit)(*target+rem*powers[DECDPUN-cut]); powers 6871 src/decNumber/decNumber.c if (*up!=powers[count]-1) break; // not still 9s powers 6873 src/decNumber/decNumber.c *up=(Unit)powers[count-1]; // here 999 -> 100 etc. powers 6895 src/decNumber/decNumber.c if (*up!=powers[count-1]) break; // not 100.. powers 6898 src/decNumber/decNumber.c *up=(Unit)powers[count]-1; // here 100 in msu -> 999 powers 6900 src/decNumber/decNumber.c for (up=up-1; up>=dn->lsu; up--) *up=(Unit)powers[DECDPUN]-1; powers 6911 src/decNumber/decNumber.c *sup=(Unit)powers[count-1]-1; // here 999.. in msu -> 99.. powers 7110 src/decNumber/decNumber.c *up=(Unit)(powers[count]-1); powers 7280 src/decNumber/decNumber.c rem=*up-theInt*powers[count]; powers 7282 src/decNumber/decNumber.c rem=*up%powers[count]; // slice off discards powers 7283 src/decNumber/decNumber.c theInt=*up/powers[count]; powers 7300 src/decNumber/decNumber.c theInt+=*up*powers[got]; powers 7304 src/decNumber/decNumber.c if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11; powers 7343 src/decNumber/decNumber.c if (cut!=DECDPUN) *msu%=powers[cut]; // clear left digits powers 7489 src/decNumber/decNumber.c for (pow=&powers[4]; *up>=*pow; pow++) digits++;