Lines Matching refs:DECDPUN
230 #if DECDPUN<=4
242 #error decNumber.c: DECUSE64 must be 1 when DECDPUN>4
414 #if DECDPUN>1 /* split to higher */ in uprv_decNumberToInt32()
420 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToInt32()
450 #if DECDPUN>1 /* split to higher */ in uprv_decNumberToUInt32()
456 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in uprv_decNumberToUInt32()
524 #if DECDPUN>1 in uprv_decNumberFromString()
686 #if DECDPUN>1 in uprv_decNumberFromString()
689 cut=d-(up-res)*DECDPUN; /* digits in top unit */ in uprv_decNumberFromString()
698 cut=DECDPUN; /* .. */ in uprv_decNumberFromString()
852 for (i=0; i<DECDPUN; i++) { in uprv_decNumberAnd()
1242 for (i=0; i<DECDPUN; i++) { in uprv_decNumberInvert()
1523 #if DECDPUN==1 in uprv_decNumberLog10()
1866 for (i=0; i<DECDPUN; i++) { in uprv_decNumberOr()
2551 units=rotate/DECDPUN; /* whole units to rotate */ in uprv_decNumberRotate()
2552 shift=rotate%DECDPUN; /* left-over digits count */ in uprv_decNumberRotate()
2560 +(Unit)(rem*powers[DECDPUN-(shift-msudigits)]); /* .. */ in uprv_decNumberRotate()
2572 shift=DECDPUN-msudigits; in uprv_decNumberRotate()
2963 #if DECDPUN>=3 in uprv_decNumberSquareRoot()
2966 #elif DECDPUN==2 in uprv_decNumberSquareRoot()
2980 #if DECDPUN>=3 in uprv_decNumberSquareRoot()
2983 #elif DECDPUN==2 in uprv_decNumberSquareRoot()
3296 for (i=0; i<DECDPUN; i++) { in uprv_decNumberXor()
3397 if (src->digits>DECDPUN) { /* more Units to come */ in uprv_decNumberCopy()
3490 #if DECDPUN==1 /* trivial simple copy */ in uprv_decNumberGetBCD()
3494 uInt cut=DECDPUN; /* downcounter through unit */ in uprv_decNumberGetBCD()
3502 cut=DECDPUN; in uprv_decNumberGetBCD()
3524 #if DECDPUN==1 /* trivial simple copy */ in uprv_decNumberSetBCD()
3532 cut=DECDPUN; /* next Unit has all digits */ in uprv_decNumberSetBCD()
3695 cut=DECDPUN-1; /* next Unit has all digits */ in decToString()
3739 cut=DECDPUN-1; in decToString()
3750 cut=DECDPUN-1; in decToString()
3766 cut=DECDPUN-1; in decToString()
3972 && rhs->digits<=DECDPUN in decAddOp()
3981 && (lhs->digits>=DECDPUN || /* .. and no digits-count change */ in decAddOp()
4050 mult=powers[padding-(rhsshift*DECDPUN)]; /* .. this by multiplication */ in decAddOp()
4096 *DECDPUN; /* [units -> digits] */ in decAddOp()
4255 Unit accbuff[SD2U(DECBUFFER+DECDPUN+10)]; /* local buffer */ in decDivideOp()
4263 Unit varbuff[SD2U(DECBUFFER*2+DECDPUN)]; /* buffer for var1 */ in decDivideOp()
4435 acclength=D2U(reqdigits+DECDPUN); /* in Units */ in decDivideOp()
4514 var1initpad=(var1units-D2U(lhs->digits))*DECDPUN; in decDivideOp()
4517 else cut=DECDPUN-exponent%DECDPUN; in decDivideOp()
4522 for (u=msu1; cut>=DECDPUN; cut-=DECDPUN, u--) *u=0; in decDivideOp()
4530 exponent-=DECDPUN; /* update the exponent */ in decDivideOp()
4610 else accdigits+=DECDPUN; in decDivideOp()
4630 exponent-=DECDPUN; /* update the exponent */ in decDivideOp()
4655 #if DECDPUN>1 in decDivideOp()
4662 #if DECDPUN<=4 in decDivideOp()
4774 if (quotdigits>DECDPUN) { in decDivideOp()
4781 quotdigits-=DECDPUN; /* checked those digits */ in decDivideOp()
4792 expunits=exp/DECDPUN; in decDivideOp()
4793 exprem=exp%DECDPUN; in decDivideOp()
4867 #define FASTMUL (DECUSE64 && DECDPUN<5)
4887 #if DECDPUN & 1 /* odd */ in decMultiplyOp()
4908 #if DECDPUN==1 in decMultiplyOp()
4981 #define NEEDTWO (DECDPUN*2) /* within two decUnitAddSub calls */ in decMultiplyOp()
5010 #if DECDPUN==1 in decMultiplyOp()
5022 #if DECDPUN==1 in decMultiplyOp()
5029 p+=DECDPUN, cup++, count-=DECDPUN) in decMultiplyOp()
5034 p+=DECDPUN, cup++, count-=DECDPUN) in decMultiplyOp()
5095 for (p=0; p<FASTDIGS-DECDPUN; p+=DECDPUN, up++) { in decMultiplyOp()
5678 #if DECDPUN==1
6315 expunits=exp/DECDPUN;
6316 exprem=exp%DECDPUN;
6388 #if DECDPUN<=4 /* myriadal, millenary, etc. */
6432 #if DECDPUN==4 /* use divide-by-multiply */
6450 #elif DECDPUN==3
6468 #elif DECDPUN<=2
6471 est=QUOT10(carry, DECDPUN);
6478 est=QUOT10(carry, DECDPUN);
6519 #if DECDPUN==4 /* use divide-by-multiply */
6537 #elif DECDPUN==3
6555 #elif DECDPUN<=2
6557 est=QUOT10(carry, DECDPUN);
6564 est=QUOT10(carry, DECDPUN);
6657 #if DECDPUN<=4
6672 if (cut>DECDPUN) { /* need new Unit */
6733 if ((digits+shift)<=DECDPUN) { /* [fastpath] single-unit case */
6741 cut=DECDPUN-MSUDIGITS(shift); /* where to slice */
6749 #if DECDPUN<=4
6758 next=rem*powers[DECDPUN-cut]; /* save remainder for next Unit */
6789 if (shift==units*DECDPUN) { /* [fastpath] little to do */
6796 if (cut==DECDPUN) { /* unit-boundary case; easy */
6804 count=units*DECDPUN-shift; /* the maximum new length */
6805 #if DECDPUN<=4
6812 count-=(DECDPUN-cut);
6816 #if DECDPUN<=4
6823 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
6938 #if DECDPUN<=4
6948 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
6967 for (up=lsu; count>0; up++, count-=DECDPUN) if (*up!=0) { /* found non-0 */
6986 count+=DECDPUN;
6992 cut=discard-(count-DECDPUN)-1;
6993 if (cut==DECDPUN-1) { /* unit-boundary case (fast) */
6994 Unit half=(Unit)powers[DECDPUN]>>1;
7012 for (target=dn->lsu; count>0; target++, up++, count-=DECDPUN)
7022 #if DECDPUN<=4
7033 #if DECDPUN<=4
7059 count-=(DECDPUN-cut);
7063 #if DECDPUN<=4
7070 *target=(Unit)(*target+rem*powers[DECDPUN-cut]);
7203 if (count<=DECDPUN) {
7218 count-=DECDPUN;
7227 if (count<=DECDPUN) {
7234 for (up=up-1; up>=dn->lsu; up--) *up=(Unit)powers[DECDPUN]-1;
7256 count-=DECDPUN;
7443 if (count>DECDPUN) *up=DECDPUNMAX; /* unit full o'nines */
7448 count-=DECDPUN; /* filled those digits */
7611 for (; count>=DECDPUN; up++) {
7613 count-=DECDPUN;
7619 #if DECDPUN<=4
7628 got=DECDPUN-count; /* number of digits so far */
7635 if (got==0) {theInt=*up; got+=DECDPUN; up++;} /* ensure lsu is there */
7642 got+=DECDPUN;
7645 if (theInt/(Int)powers[got-DECDPUN]!=(Int)*(up-1)) ilength=11;
7689 if (cut!=DECDPUN) *msu%=powers[cut]; /* clear left digits */
7757 res->digits=D2U(set->digits)*DECDPUN;
7812 Int digits=(len-1)*DECDPUN+1; /* possible digits excluding msu */
7813 #if DECDPUN>4
7824 digits-=DECDPUN; /* adjust for 0 unit */
7827 #if DECDPUN>1 /* not done yet */
7830 #if DECDPUN>2 /* not done yet */
7833 #if DECDPUN>3 /* not done yet */
7836 #if DECDPUN>4 /* count the rest ... */
7886 for (cut=DECDPUN-1; cut>=0; cut--) {
7911 #if DECDPUN==9
7913 #elif DECDPUN==8
7915 #elif DECDPUN==7
7917 #elif DECDPUN==6
7919 #elif DECDPUN==5
7921 #elif DECDPUN==4
7923 #elif DECDPUN==3
7925 #elif DECDPUN==2
8050 if (d>DECDPUN) maxuint=DECDPUNMAX;
8066 d-=DECDPUN;