digits 77 src/decNumber/decContext.c context->digits=9; // 9 digits digits 92 src/decNumber/decContext.c context->digits=7; // digits digits 103 src/decNumber/decContext.c context->digits=16; // digits digits 114 src/decNumber/decContext.c context->digits=34; // digits digits 78 src/decNumber/decContext.h int32_t digits; /* working precision */ digits 311 src/decNumber/decNumber.c dn->digits=decGetDigits(dn->lsu, up-dn->lsu); digits 327 src/decNumber/decNumber.c if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; // bad digits 340 src/decNumber/decNumber.c for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; digits 359 src/decNumber/decNumber.c if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 digits 373 src/decNumber/decNumber.c for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; digits 513 src/decNumber/decNumber.c if (d>set->digits-1) { digits 517 src/decNumber/decNumber.c if (d>set->digits) break; digits 584 src/decNumber/decNumber.c if (d<=set->digits) res=dn->lsu; // fits into supplied decNumber digits 627 src/decNumber/decNumber.c dn->digits=d; digits 630 src/decNumber/decNumber.c if (d>set->digits) { digits 638 src/decNumber/decNumber.c if ((dn->exponent-1<set->emin-dn->digits) digits 639 src/decNumber/decNumber.c || (dn->exponent-1>set->emax-set->digits)) { digits 736 src/decNumber/decNumber.c msua=ua+D2U(lhs->digits)-1; // -> msu of lhs digits 737 src/decNumber/decNumber.c msub=ub+D2U(rhs->digits)-1; // -> msu of rhs digits 738 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 739 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 766 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 860 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); digits 874 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); digits 975 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 1032 src/decNumber/decNumber.c dcmul.digits=lhs->digits+rhs->digits; // just enough digits 1038 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); digits 1100 src/decNumber/decNumber.c msua=ua+D2U(rhs->digits)-1; // -> msu of rhs digits 1101 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 1102 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 1123 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 1170 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 1229 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent digits 1230 src/decNumber/decNumber.c if (set->digits>=10) decNumberFromInt32(res, ae); // lay it out digits 1309 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 1329 src/decNumber/decNumber.c aset.digits=1; digits 1352 src/decNumber/decNumber.c p=(rhs->digits+t>set->digits?rhs->digits+t:set->digits)+3; digits 1361 src/decNumber/decNumber.c aset.digits=p; // as calculated digits 1375 src/decNumber/decNumber.c p=set->digits+3; digits 1390 src/decNumber/decNumber.c w->digits=2; // .. digits 1392 src/decNumber/decNumber.c aset.digits=p; digits 1395 src/decNumber/decNumber.c aset.digits=set->digits; // for final divide digits 1549 src/decNumber/decNumber.c dtiny.exponent=set->emin-set->digits; digits 1591 src/decNumber/decNumber.c dtiny.exponent=set->emin-set->digits; digits 1693 src/decNumber/decNumber.c msua=ua+D2U(lhs->digits)-1; // -> msu of lhs digits 1694 src/decNumber/decNumber.c msub=ub+D2U(rhs->digits)-1; // -> msu of rhs digits 1695 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 1696 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 1722 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 1810 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS digits 1835 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 1840 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { digits 1869 src/decNumber/decNumber.c Int shift=set->digits-1; digits 1871 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, 1, shift); digits 1964 src/decNumber/decNumber.c aset.digits=MAXI(lhs->digits, set->digits)+6+4; digits 1979 src/decNumber/decNumber.c aset.digits=reqdigits+(rhs->digits+rhs->exponent)+2; digits 1984 src/decNumber/decNumber.c if (!set->extended) aset.digits--; // use classic precision digits 1987 src/decNumber/decNumber.c if (aset.digits>DECNUMMAXP) {status|=DEC_Invalid_operation; break;} digits 1992 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); digits 2013 src/decNumber/decNumber.c Int shift=set->digits-1; digits 2014 src/decNumber/decNumber.c dac->digits=decShiftToMost(dac->lsu, 1, shift); digits 2052 src/decNumber/decNumber.c if (dnOne.digits > 1) __builtin_unreachable (); digits 2186 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 2321 src/decNumber/decNumber.c || abs(rotate)>set->digits) // .. or out of range digits 2325 src/decNumber/decNumber.c if (res->digits>set->digits) decDecap(res, res->digits-set->digits); digits 2327 src/decNumber/decNumber.c if (rotate<0) rotate=set->digits+rotate; digits 2328 src/decNumber/decNumber.c if (rotate!=0 && rotate!=set->digits // zero or full rotation digits 2333 src/decNumber/decNumber.c Unit *msu=res->lsu+D2U(res->digits)-1; // current msu digits 2334 src/decNumber/decNumber.c Unit *msumax=res->lsu+D2U(set->digits)-1; //-V778 // rotation msu digits 2336 src/decNumber/decNumber.c res->digits=set->digits; // now full-length digits 2337 src/decNumber/decNumber.c msudigits=MSUDIGITS(res->digits); // actual digits in msu digits 2370 src/decNumber/decNumber.c rotate=set->digits-rotate; // make it right-rotate digits 2375 src/decNumber/decNumber.c decShiftToLeast(res->lsu, D2U(res->digits), shift); digits 2407 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, msumax-res->lsu+1); digits 2474 src/decNumber/decNumber.c || (abs(reqexp)+1)/2>(set->digits+set->emax)) // .. or out of range digits 2533 src/decNumber/decNumber.c || abs(shift)>set->digits) // .. or out of range digits 2539 src/decNumber/decNumber.c if (shift==set->digits) { // removing all digits 2541 src/decNumber/decNumber.c res->digits=1; // .. digits 2545 src/decNumber/decNumber.c if (res->digits+shift>set->digits) { digits 2546 src/decNumber/decNumber.c decDecap(res, res->digits+shift-set->digits); digits 2550 src/decNumber/decNumber.c if (res->digits>1 || *res->lsu) // if non-zero.. digits 2551 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, shift); digits 2555 src/decNumber/decNumber.c if (-shift>=res->digits) { // discarding all digits 2557 src/decNumber/decNumber.c res->digits=1; // .. digits 2560 src/decNumber/decNumber.c decShiftToLeast(res->lsu, D2U(res->digits), -shift); digits 2561 src/decNumber/decNumber.c res->digits-=(-shift); digits 2680 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 2728 src/decNumber/decNumber.c workp=MAXI(set->digits+1, rhs->digits); // actual rounding precision digits 2732 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); digits 2754 src/decNumber/decNumber.c exp=f->exponent+f->digits; // adjusted to Hull rules digits 2755 src/decNumber/decNumber.c f->exponent=-(f->digits); // to range digits 2766 src/decNumber/decNumber.c workset.digits=workp; // p for initial calculation digits 2767 src/decNumber/decNumber.c t->bits=0; t->digits=3; digits 2768 src/decNumber/decNumber.c a->bits=0; a->digits=3; digits 2812 src/decNumber/decNumber.c workset.digits=3; // initial p digits 2813 src/decNumber/decNumber.c for (; workset.digits<maxp;) { digits 2815 src/decNumber/decNumber.c workset.digits=MINI(workset.digits*2-2, maxp); digits 2854 src/decNumber/decNumber.c workset.digits--; // maxp-1 is OK now digits 2855 src/decNumber/decNumber.c t->exponent=-a->digits-1; // make 0.5 ulp digits 2900 src/decNumber/decNumber.c if (b->digits*2-1 > workp) { // cannot fit digits 2919 src/decNumber/decNumber.c Int maxexp=set->emax-set->digits+1; digits 2930 src/decNumber/decNumber.c decShiftToLeast(a->lsu, D2U(a->digits), todrop); digits 2932 src/decNumber/decNumber.c a->digits-=todrop; // new length digits 2942 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent digits 3024 src/decNumber/decNumber.c workset.digits=rhs->digits; // no length rounding digits 3076 src/decNumber/decNumber.c msua=ua+D2U(lhs->digits)-1; // -> msu of lhs digits 3077 src/decNumber/decNumber.c msub=ub+D2U(rhs->digits)-1; // -> msu of rhs digits 3078 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 3079 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 3105 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 3184 src/decNumber/decNumber.c dest->digits=src->digits; digits 3186 src/decNumber/decNumber.c if (src->digits>DECDPUN) { // more Units to come digits 3192 src/decNumber/decNumber.c smsup=src->lsu+D2U(src->digits); // -> source msu+1 digits 3267 src/decNumber/decNumber.c uByte *ub=bcd+dn->digits-1; // -> lsd digits 3301 src/decNumber/decNumber.c Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [target pointer] digits 3315 src/decNumber/decNumber.c dn->digits=n; // set digit count digits 3331 src/decNumber/decNumber.c ae=dn->exponent+dn->digits-1; // adjusted exponent digits 3348 src/decNumber/decNumber.c ae=dn->exponent+dn->digits-1; // adjusted exponent digits 3392 src/decNumber/decNumber.c dn->digits=1; digits 3421 src/decNumber/decNumber.c const Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [input pointer] digits 3442 src/decNumber/decNumber.c if (exp!=0 || (*dn->lsu==0 && dn->digits==1)) return; digits 3447 src/decNumber/decNumber.c cut=MSUDIGITS(dn->digits); // [faster than remainder] digits 3460 src/decNumber/decNumber.c pre=dn->digits+exp; // digits before '.' digits 3463 src/decNumber/decNumber.c e=exp+dn->digits-1; // calculate E value digits 3503 src/decNumber/decNumber.c if (n<dn->digits) { // more to come, after '.' digits 3610 src/decNumber/decNumber.c Int reqdigits=set->digits; // local copy; requested DIGITS digits 3617 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 3622 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { digits 3679 src/decNumber/decNumber.c if ((res->digits-adjust)>set->digits) { digits 3680 src/decNumber/decNumber.c adjust=res->digits-set->digits; // to fit exactly digits 3683 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, -adjust); digits 3707 src/decNumber/decNumber.c if ((res->digits-adjust)>set->digits) { digits 3708 src/decNumber/decNumber.c adjust=res->digits-set->digits; // to fit exactly digits 3711 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, -adjust); digits 3730 src/decNumber/decNumber.c && rhs->digits<=DECDPUN digits 3732 src/decNumber/decNumber.c && rhs->exponent<=set->emax-set->digits+1 // [could clamp] digits 3733 src/decNumber/decNumber.c && rhs->digits<=reqdigits digits 3734 src/decNumber/decNumber.c && lhs->digits<=reqdigits) { digits 3739 src/decNumber/decNumber.c && (lhs->digits>=DECDPUN || // .. and no digits-count change digits 3740 src/decNumber/decNumber.c partial<(Int)powers[lhs->digits])) { // .. digits 3753 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, D2U(res->digits)); digits 3780 src/decNumber/decNumber.c exponent += (rhs->digits>reqdigits) ? 0 : rhs->digits-reqdigits-1; digits 3781 src/decNumber/decNumber.c if (lhs->digits+lhs->exponent-1 < exponent) { digits 3785 src/decNumber/decNumber.c dtiny.digits=1; digits 3800 src/decNumber/decNumber.c maxdigits=rhs->digits+padding; // virtual length of RHS digits 3801 src/decNumber/decNumber.c if (lhs->digits>maxdigits) maxdigits=lhs->digits; digits 3829 src/decNumber/decNumber.c res->digits=decUnitAddSub(lhs->lsu, D2U(lhs->digits), digits 3830 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), digits 3833 src/decNumber/decNumber.c if (res->digits<0) { // borrowed... digits 3834 src/decNumber/decNumber.c res->digits=-res->digits; digits 3848 src/decNumber/decNumber.c if (res->digits>reqdigits) digits 3849 src/decNumber/decNumber.c res->digits=decGetDigits(acc, D2U(res->digits)); digits 3850 src/decNumber/decNumber.c decSetCoeff(res, set, acc, res->digits, &residue, status); digits 3859 src/decNumber/decNumber.c if (res->digits<maxdigits) { digits 3860 src/decNumber/decNumber.c *(acc+D2U(res->digits))=0; // ensure leading 0 is there digits 3861 src/decNumber/decNumber.c res->digits=maxdigits; digits 3867 src/decNumber/decNumber.c if (res->digits>reqdigits) { digits 3868 src/decNumber/decNumber.c res->digits=decGetDigits(acc, D2U(res->digits)); digits 3869 src/decNumber/decNumber.c if (res->digits<maxdigits) res->digits=maxdigits; digits 3872 src/decNumber/decNumber.c decSetCoeff(res, set, acc, res->digits, &residue, status); digits 3884 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, D2U(res->digits)); digits 4013 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS digits 4029 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 4034 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { digits 4075 src/decNumber/decNumber.c res->exponent=set->emin-set->digits+1; digits 4132 src/decNumber/decNumber.c exponent=(lhs->exponent+lhs->digits)-(rhs->exponent+rhs->digits); digits 4185 src/decNumber/decNumber.c maxdigits=rhs->digits+reqdigits-1; digits 4186 src/decNumber/decNumber.c if (lhs->digits>maxdigits) maxdigits=lhs->digits; digits 4206 src/decNumber/decNumber.c source=lhs->lsu+D2U(lhs->digits)-1; // msu of input array digits 4212 src/decNumber/decNumber.c var2units=D2U(rhs->digits); // rhs actual length (units) digits 4243 src/decNumber/decNumber.c var1initpad=(var1units-D2U(lhs->digits))*DECDPUN; digits 4473 src/decNumber/decNumber.c compare=decUnitCompare(accnext, tarunits, rhs->lsu, D2U(rhs->digits), digits 4521 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), digits 4676 src/decNumber/decNumber.c if (lhs->digits<rhs->digits) { // swap... digits 4686 src/decNumber/decNumber.c if (lhs->digits>set->digits) { digits 4691 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 4704 src/decNumber/decNumber.c if (rhs->digits>NEEDTWO) { // use fastpath... digits 4706 src/decNumber/decNumber.c ilhs=(lhs->digits+FASTDIGS-1)/FASTDIGS; // [ceiling] digits 4707 src/decNumber/decNumber.c irhs=(rhs->digits+FASTDIGS-1)/FASTDIGS; // .. digits 4745 src/decNumber/decNumber.c for (count=lhs->digits, cup=lhs->lsu, lip=zlhi; count>0; lip++) digits 4750 src/decNumber/decNumber.c for (count=rhs->digits, cup=rhs->lsu, rip=zrhi; count>0; rip++) digits 4827 src/decNumber/decNumber.c needbytes=(D2U(lhs->digits)+D2U(rhs->digits))*sizeof(Unit); digits 4842 src/decNumber/decNumber.c madlength=D2U(lhs->digits); // this won't change digits 4843 src/decNumber/decNumber.c mermsup=rhs->lsu+D2U(rhs->digits); // -> msu+1 of multiplier digits 4868 src/decNumber/decNumber.c res->digits=decGetDigits(acc, accunits); // count digits exactly digits 4881 src/decNumber/decNumber.c decSetCoeff(res, set, acc, res->digits, &residue, status); digits 5042 src/decNumber/decNumber.c d->exponent=-set->digits; // * 10**(-d) digits 5049 src/decNumber/decNumber.c Int shift=set->digits-1; digits 5052 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, 1, shift); digits 5067 src/decNumber/decNumber.c h=rhs->exponent+rhs->digits; digits 5084 src/decNumber/decNumber.c Int maxlever=(rhs->digits>8?1:0); digits 5096 src/decNumber/decNumber.c Int use=-rhs->digits-lever; // exponent to use for RHS digits 5105 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); digits 5129 src/decNumber/decNumber.c p=MAXI(x->digits, set->digits)+h+2; // [h<=8] digits 5167 src/decNumber/decNumber.c aset.digits=p*2; // double digits 5169 src/decNumber/decNumber.c tset.digits=p; digits 5184 src/decNumber/decNumber.c if (((a->digits+a->exponent)>=(t->digits+t->exponent+p+1)) digits 5185 src/decNumber/decNumber.c && (a->digits>=p)) break; digits 5196 src/decNumber/decNumber.c aset.digits=p+2; // sufficient precision digits 5221 src/decNumber/decNumber.c aset.digits=set->digits; // [use default rounding] digits 5367 src/decNumber/decNumber.c if (rhs->exponent==0 && set->digits<=40) { digits 5369 src/decNumber/decNumber.c if (rhs->lsu[0]==0 && rhs->lsu[1]==1 && rhs->digits==2) { // ln(10) digits 5371 src/decNumber/decNumber.c if (rhs->lsu[0]==10 && rhs->digits==2) { // ln(10) digits 5378 src/decNumber/decNumber.c if (rhs->lsu[0]==2 && rhs->digits==1) { // ln(2) digits 5391 src/decNumber/decNumber.c p=MAXI(rhs->digits, MAXI(set->digits, 7))+2; digits 5407 src/decNumber/decNumber.c pp=p+rhs->digits; digits 5427 src/decNumber/decNumber.c r=rhs->exponent+rhs->digits; // 'normalised' exponent digits 5435 src/decNumber/decNumber.c aset.digits=2; aset.round=DEC_ROUND_DOWN; digits 5449 src/decNumber/decNumber.c aset.digits=16; aset.round=DEC_ROUND_HALF_EVEN; // restore digits 5462 src/decNumber/decNumber.c if (rhs->digits > set->digits) { digits 5476 src/decNumber/decNumber.c aset.digits=pp; // working context digits 5477 src/decNumber/decNumber.c bset.digits=pp+rhs->digits; // wider context digits 5500 src/decNumber/decNumber.c (a->digits+a->exponent)>=(b->digits+b->exponent+set->digits+1)) { digits 5501 src/decNumber/decNumber.c if (a->digits==p) break; digits 5518 src/decNumber/decNumber.c aset.digits=pp; // working context digits 5519 src/decNumber/decNumber.c bset.digits=pp+rhs->digits; // wider context digits 5525 src/decNumber/decNumber.c aset.digits=set->digits; // [use default rounding] digits 5566 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS digits 5575 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 5580 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { // [this only checks lostDigits] digits 5633 src/decNumber/decNumber.c if ((lhs->digits-adjust)>reqdigits) { digits 5643 src/decNumber/decNumber.c workset.digits=lhs->digits-adjust; // set requested length digits 5653 src/decNumber/decNumber.c if (res->digits==reqdigits) { // cannot shift by 1 digits 5658 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, 1); // shift digits 5672 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, -adjust); digits 5680 src/decNumber/decNumber.c if (res->exponent>set->emax-res->digits+1) { // too big digits 5741 src/decNumber/decNumber.c if (lhs->digits>set->digits) { digits 5746 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 5788 src/decNumber/decNumber.c result=decUnitCompare(lhs->lsu, D2U(lhs->digits), digits 5789 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), 0); digits 5933 src/decNumber/decNumber.c compare=decUnitCompare(lhs->lsu, D2U(lhs->digits), digits 5934 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), digits 6325 src/decNumber/decNumber.c for (d=0; d<dn->digits-1; d++) { // [don't strip the final digit] digits 6351 src/decNumber/decNumber.c Int maxd=set->emax-set->digits+1-dn->exponent; digits 6357 src/decNumber/decNumber.c decShiftToLeast(dn->lsu, D2U(dn->digits), d); digits 6359 src/decNumber/decNumber.c dn->digits-=d; // new length digits 6397 src/decNumber/decNumber.c static Int decShiftToMost(Unit *uar, Int digits, Int shift) { digits 6402 src/decNumber/decNumber.c if (shift==0) return digits; // [fastpath] nothing to do digits 6403 src/decNumber/decNumber.c if ((digits+shift)<=DECDPUN) { // [fastpath] single-unit case digits 6405 src/decNumber/decNumber.c return digits+shift; digits 6409 src/decNumber/decNumber.c source=uar+D2U(digits)-1; // where msu comes from digits 6416 src/decNumber/decNumber.c first=uar+D2U(digits+shift)-1; // where msu of source will end up digits 6437 src/decNumber/decNumber.c return digits+shift; digits 6528 src/decNumber/decNumber.c +(D2U(set->digits)-1)*sizeof(Unit)); digits 6559 src/decNumber/decNumber.c decSetCoeff(dest, set, src->lsu, src->digits, residue, status); digits 6612 src/decNumber/decNumber.c discard=len-set->digits; // digits to discard digits 6620 src/decNumber/decNumber.c dn->digits=len; // set the new length digits 6644 src/decNumber/decNumber.c dn->digits=1; // .. digits 6673 src/decNumber/decNumber.c if (set->digits<=0) { // special for Quantize/Subnormal :-( digits 6675 src/decNumber/decNumber.c dn->digits=1; // .. digits 6678 src/decNumber/decNumber.c count=set->digits; // now digits to end up with digits 6679 src/decNumber/decNumber.c dn->digits=count; // set the new length digits 6718 src/decNumber/decNumber.c if (set->digits<=0) { // special for Quantize/Subnormal :-( digits 6720 src/decNumber/decNumber.c dn->digits=1; // .. digits 6723 src/decNumber/decNumber.c count=set->digits; // now digits to end up with digits 6724 src/decNumber/decNumber.c dn->digits=count; // set the new length digits 6867 src/decNumber/decNumber.c uInt count=dn->digits; // digits to be checked digits 6877 src/decNumber/decNumber.c if ((dn->exponent+dn->digits)>set->emax+1) { digits 6891 src/decNumber/decNumber.c uInt count=dn->digits; // digits to be checked digits 6908 src/decNumber/decNumber.c if (dn->exponent+1==set->emin-set->digits+1) { //-V584 digits 6909 src/decNumber/decNumber.c if (count==1 && dn->digits==1) *sup=0; // here 9 -> 0[.9] digits 6912 src/decNumber/decNumber.c dn->digits--; digits 6928 src/decNumber/decNumber.c decUnitAddSub(dn->lsu, D2U(dn->digits), uarrone, 1, 0, dn->lsu, bump); digits 6958 src/decNumber/decNumber.c if (set->digits >= (dn->exponent+dn->digits)) { digits 6959 src/decNumber/decNumber.c dn->digits=decShiftToMost(dn->lsu, dn->digits, dn->exponent); digits 6986 src/decNumber/decNumber.c Int tinyexp=set->emin-dn->digits+1; // precalculate subnormal boundary digits 7023 src/decNumber/decNumber.c if (dn->exponent<=set->emax-set->digits+1) return; // neither needed digits 7026 src/decNumber/decNumber.c if (dn->exponent>set->emax-dn->digits+1) { // too big digits 7034 src/decNumber/decNumber.c shift=dn->exponent-(set->emax-set->digits+1); digits 7038 src/decNumber/decNumber.c dn->digits=decShiftToMost(dn->lsu, dn->digits, shift); digits 7062 src/decNumber/decNumber.c if (set->clamp) emax-=set->digits-1; // lower if clamping digits 7104 src/decNumber/decNumber.c Int count=set->digits; // nines to add digits 7105 src/decNumber/decNumber.c dn->digits=count; digits 7116 src/decNumber/decNumber.c dn->exponent=set->emax-set->digits+1; digits 7153 src/decNumber/decNumber.c etiny=set->emin-(set->digits-1); // smallest allowed exponent digits 7177 src/decNumber/decNumber.c workset.digits=dn->digits-adjust; // set requested length digits 7180 src/decNumber/decNumber.c decSetCoeff(dn, &workset, dn->lsu, dn->digits, residue, status); digits 7190 src/decNumber/decNumber.c dn->digits=decShiftToMost(dn->lsu, dn->digits, 1); digits 7219 src/decNumber/decNumber.c if (set->digits>DEC_MAX_MATH digits 7222 src/decNumber/decNumber.c else if ((rhs->digits>DEC_MAX_MATH digits 7223 src/decNumber/decNumber.c || rhs->exponent+rhs->digits>DEC_MAX_MATH+1 digits 7224 src/decNumber/decNumber.c || rhs->exponent+rhs->digits<2*(1-DEC_MAX_MATH)) digits 7248 src/decNumber/decNumber.c Int ilength=dn->digits+dn->exponent; // integral length digits 7336 src/decNumber/decNumber.c if (drop>=dn->digits) { // losing the whole thing digits 7338 src/decNumber/decNumber.c dn->digits=1; digits 7341 src/decNumber/decNumber.c msu=dn->lsu+D2U(dn->digits-drop)-1; // -> likely msu digits 7342 src/decNumber/decNumber.c cut=MSUDIGITS(dn->digits-drop); // digits to be in use in msu digits 7345 src/decNumber/decNumber.c dn->digits=decGetDigits(dn->lsu, msu-dn->lsu+1); digits 7403 src/decNumber/decNumber.c if (lhs->digits<=set->digits) decNumberCopy(res, lhs); // easy digits 7409 src/decNumber/decNumber.c uresp1=res->lsu+D2U(set->digits); digits 7413 src/decNumber/decNumber.c res->digits=D2U(set->digits)*DECDPUN; digits 7415 src/decNumber/decNumber.c if (res->digits>set->digits) decDecap(res, res->digits-set->digits); digits 7468 src/decNumber/decNumber.c Int digits=(len-1)*DECDPUN+1; // possible digits excluding msu digits 7475 src/decNumber/decNumber.c if (digits==1) break; // a zero has one digit digits 7476 src/decNumber/decNumber.c digits-=DECDPUN; // adjust for 0 unit digits 7481 src/decNumber/decNumber.c digits++; digits 7484 src/decNumber/decNumber.c digits++; digits 7487 src/decNumber/decNumber.c digits++; digits 7489 src/decNumber/decNumber.c for (pow=&powers[4]; *up>=*pow; pow++) digits++; digits 7496 src/decNumber/decNumber.c return digits; digits 72 src/decNumber/decNumber.h int32_t digits; /* Count of digits in the coefficient; >0 */ digits 181 src/decNumber/decNumber.h && (dn)->digits==1 \ digits 230 src/dps8/dps8_cable.c char * digits = "0123456789"; digits 231 src/dps8/dps8_cable.c q = strchr (digits, tolower (*p)); digits 51 src/dps8/dps8_decimal.c context->digits = 65; digits 71 src/dps8/dps8_decimal.c context->digits = 63 + 63; // worse case for multiply digits 91 src/dps8/dps8_decimal.c digits 103 src/dps8/dps8_decimal.c Int digits; // digits count digits 119 src/dps8/dps8_decimal.c digits=(Int)(last-first)+1; // calculate digits .. digits 121 src/dps8/dps8_decimal.c if (digits!=0) digits 122 src/dps8/dps8_decimal.c dn->digits=digits; // count of actual digits [if 0, digits 129 src/dps8/dps8_decimal.c if ((dn->digits-scale-1)<-DECNUMMAXE) // underflow digits 141 src/dps8/dps8_decimal.c || ((dn->digits-scale-1)>DECNUMMAXE)) // overflow digits 149 src/dps8/dps8_decimal.c if (digits==0) digits 166 src/dps8/dps8_decimal.c digits--; digits 167 src/dps8/dps8_decimal.c if (digits==0) digits 226 src/dps8/dps8_decimal.c digits 234 src/dps8/dps8_decimal.c digits 292 src/dps8/dps8_decimal.c digits 293 src/dps8/dps8_decimal.c digits 311 src/dps8/dps8_decimal.c digits 334 src/dps8/dps8_decimal.c digits 335 src/dps8/dps8_decimal.c digits 343 src/dps8/dps8_decimal.c digits 353 src/dps8/dps8_decimal.c digits 376 src/dps8/dps8_decimal.c digits 377 src/dps8/dps8_decimal.c digits 386 src/dps8/dps8_decimal.c digits 423 src/dps8/dps8_decimal.c digits 455 src/dps8/dps8_decimal.c digits 456 src/dps8/dps8_decimal.c digits 466 src/dps8/dps8_decimal.c digits 469 src/dps8/dps8_decimal.c digits 478 src/dps8/dps8_decimal.c digits 479 src/dps8/dps8_decimal.c digits 495 src/dps8/dps8_decimal.c digits 496 src/dps8/dps8_decimal.c digits 502 src/dps8/dps8_decimal.c digits 504 src/dps8/dps8_decimal.c digits 509 src/dps8/dps8_decimal.c digits 513 src/dps8/dps8_decimal.c digits 531 src/dps8/dps8_decimal.c digits 542 src/dps8/dps8_decimal.c digits 544 src/dps8/dps8_decimal.c digits 548 src/dps8/dps8_decimal.c digits 550 src/dps8/dps8_decimal.c digits 553 src/dps8/dps8_decimal.c digits 554 src/dps8/dps8_decimal.c digits 559 src/dps8/dps8_decimal.c digits 570 src/dps8/dps8_decimal.c digits 575 src/dps8/dps8_decimal.c digits 587 src/dps8/dps8_decimal.c digits 588 src/dps8/dps8_decimal.c digits 591 src/dps8/dps8_decimal.c digits 606 src/dps8/dps8_decimal.c digits 633 src/dps8/dps8_decimal.c digits 634 src/dps8/dps8_decimal.c digits 637 src/dps8/dps8_decimal.c digits 642 src/dps8/dps8_decimal.c digits 650 src/dps8/dps8_decimal.c digits 659 src/dps8/dps8_decimal.c digits 662 src/dps8/dps8_decimal.c digits 673 src/dps8/dps8_decimal.c digits 676 src/dps8/dps8_decimal.c digits 677 src/dps8/dps8_decimal.c digits 679 src/dps8/dps8_decimal.c digits 683 src/dps8/dps8_decimal.c digits 710 src/dps8/dps8_decimal.c int safe = set->digits; digits 742 src/dps8/dps8_decimal.c set->digits = min (DECNUMDIGITS, max (set->digits, r->digits + r->exponent - sf)); digits 749 src/dps8/dps8_decimal.c set->digits = safe; digits 759 src/dps8/dps8_decimal.c int r2digits = r2->digits; digits 770 src/dps8/dps8_decimal.c set->digits = r2digits - (nout + min (sf,0)); digits 772 src/dps8/dps8_decimal.c set->digits = safe; digits 783 src/dps8/dps8_decimal.c if (nout < r->digits) { // not enough space to move all digits digits 790 src/dps8/dps8_decimal.c set->digits = nout; digits 792 src/dps8/dps8_decimal.c set->digits = safe; digits 805 src/dps8/dps8_decimal.c int justif = nout - r->digits; digits 43 src/dps8/dps8_decimal.h sim_printf("%s:'%s E%d'\n", msg, getBCDn(dn, set->digits), dn->exponent); \ digits 10246 src/dps8/dps8_eis.c if (op3->digits > 63) { digits 10255 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 10259 src/dps8/dps8_eis.c if (op3->digits - min(max(sf,0),ctz) > 63) { digits 10262 src/dps8/dps8_eis.c int safe = set.digits; digits 10267 src/dps8/dps8_eis.c set.digits = op3->digits - min(max(sf,0),ctz) - 63; digits 10269 src/dps8/dps8_eis.c set.digits = safe; digits 10627 src/dps8/dps8_eis.c if (op3->digits > 63) { digits 10636 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 10640 src/dps8/dps8_eis.c if (op3->digits - min(max(sf,0),ctz) > 63) { digits 10643 src/dps8/dps8_eis.c int safe = set.digits; digits 10648 src/dps8/dps8_eis.c set.digits = op3->digits - min(max(sf,0),ctz) - 63; digits 10650 src/dps8/dps8_eis.c set.digits = safe; digits 10939 src/dps8/dps8_eis.c if (op3->digits > 63) { digits 10948 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 10952 src/dps8/dps8_eis.c if (op3->digits - min(max(sf,0),ctz) > 63) { digits 10955 src/dps8/dps8_eis.c int safe = set.digits; digits 10960 src/dps8/dps8_eis.c set.digits = op3->digits - min(max(sf,0),ctz) - 63; digits 10962 src/dps8/dps8_eis.c set.digits = safe; digits 11271 src/dps8/dps8_eis.c if (op3->digits > 63) { digits 11280 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 11284 src/dps8/dps8_eis.c if (op3->digits - min(max(sf,0),ctz) > 63) { digits 11287 src/dps8/dps8_eis.c int safe = set.digits; digits 11292 src/dps8/dps8_eis.c set.digits = op3->digits - min(max(sf,0),ctz) - 63; digits 11294 src/dps8/dps8_eis.c set.digits = safe; digits 12035 src/dps8/dps8_eis.c digits 12043 src/dps8/dps8_eis.c digits 12102 src/dps8/dps8_eis.c digits 12103 src/dps8/dps8_eis.c digits 12109 src/dps8/dps8_eis.c digits 12115 src/dps8/dps8_eis.c digits 12116 src/dps8/dps8_eis.c digits 12160 src/dps8/dps8_eis.c digits 12171 src/dps8/dps8_eis.c digits 12173 src/dps8/dps8_eis.c digits 12179 src/dps8/dps8_eis.c digits 12186 src/dps8/dps8_eis.c digits 12190 src/dps8/dps8_eis.c digits 12201 src/dps8/dps8_eis.c digits 12202 src/dps8/dps8_eis.c digits 12379 src/dps8/dps8_eis.c digits 12412 src/dps8/dps8_eis.c digits 12413 src/dps8/dps8_eis.c digits 12423 src/dps8/dps8_eis.c digits 12426 src/dps8/dps8_eis.c digits 12437 src/dps8/dps8_eis.c digits 12438 src/dps8/dps8_eis.c digits 12454 src/dps8/dps8_eis.c digits 12455 src/dps8/dps8_eis.c digits 12461 src/dps8/dps8_eis.c digits 12464 src/dps8/dps8_eis.c digits 12469 src/dps8/dps8_eis.c digits 12473 src/dps8/dps8_eis.c digits 12551 src/dps8/dps8_eis.c digits 12562 src/dps8/dps8_eis.c digits 12564 src/dps8/dps8_eis.c digits 12568 src/dps8/dps8_eis.c digits 12570 src/dps8/dps8_eis.c digits 12573 src/dps8/dps8_eis.c digits 12574 src/dps8/dps8_eis.c digits 12579 src/dps8/dps8_eis.c digits 12590 src/dps8/dps8_eis.c digits 12595 src/dps8/dps8_eis.c digits 12607 src/dps8/dps8_eis.c digits 12608 src/dps8/dps8_eis.c digits 12611 src/dps8/dps8_eis.c digits 12622 src/dps8/dps8_eis.c digits 12651 src/dps8/dps8_eis.c digits 12652 src/dps8/dps8_eis.c digits 12657 src/dps8/dps8_eis.c digits 12676 src/dps8/dps8_eis.c digits 12683 src/dps8/dps8_eis.c digits 12694 src/dps8/dps8_eis.c digits 12704 src/dps8/dps8_eis.c digits 12705 src/dps8/dps8_eis.c digits 12707 src/dps8/dps8_eis.c digits 12720 src/dps8/dps8_eis.c digits 12723 src/dps8/dps8_eis.c digits 12724 src/dps8/dps8_eis.c digits 12726 src/dps8/dps8_eis.c digits 12730 src/dps8/dps8_eis.c digits 12916 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) digits 12920 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) digits 12962 src/dps8/dps8_eis.c if (n2 - op3->digits > 0) digits 12964 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op3->exponent - (n2 - op3->digits)); digits 12988 src/dps8/dps8_eis.c if (op1->digits >= op2->digits) { digits 12991 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op1->digits - op2->digits); digits 12993 src/dps8/dps8_eis.c } else if (op1->digits < op2->digits) { digits 12995 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op2->digits - op1->digits); digits 13004 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "dv2d: exp1 %d exp2 %d digits op1 %d op2 %d op1a %d op2a %d\n",op1->exponent,op2->exponent,op1->digits,op2->digits,_1a.digits,_2a.digits); digits 13344 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) digits 13348 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) digits 13390 src/dps8/dps8_eis.c if (n3 - op3->digits > 0) digits 13392 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op3->exponent - (n3 - op3->digits)); digits 13416 src/dps8/dps8_eis.c if (op1->digits >= op2->digits) { digits 13419 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op1->digits - op2->digits); digits 13421 src/dps8/dps8_eis.c } else if (op1->digits < op2->digits) { digits 13423 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op2->digits - op1->digits); digits 13432 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "dv3d: exp1 %d exp2 %d digits op1 %d op2 %d op1a %d op2a %d\n",op1->exponent,op2->exponent,op1->digits,op2->digits,_1a.digits,_2a.digits);