digits 75 src/decNumber/decContext.c context->digits=9; // 9 digits digits 90 src/decNumber/decContext.c context->digits=7; // digits digits 101 src/decNumber/decContext.c context->digits=16; // digits digits 112 src/decNumber/decContext.c context->digits=34; // digits digits 76 src/decNumber/decContext.h int32_t digits; /* working precision */ digits 296 src/decNumber/decNumber.c dn->digits=decGetDigits(dn->lsu, up-dn->lsu); digits 312 src/decNumber/decNumber.c if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; // bad digits 325 src/decNumber/decNumber.c for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; digits 344 src/decNumber/decNumber.c if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 digits 358 src/decNumber/decNumber.c for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; digits 498 src/decNumber/decNumber.c if (d>set->digits-1) { digits 502 src/decNumber/decNumber.c if (d>set->digits) break; digits 569 src/decNumber/decNumber.c if (d<=set->digits) res=dn->lsu; // fits into supplied decNumber digits 612 src/decNumber/decNumber.c dn->digits=d; digits 615 src/decNumber/decNumber.c if (d>set->digits) { digits 623 src/decNumber/decNumber.c if ((dn->exponent-1<set->emin-dn->digits) digits 624 src/decNumber/decNumber.c || (dn->exponent-1>set->emax-set->digits)) { digits 721 src/decNumber/decNumber.c msua=ua+D2U(lhs->digits)-1; // -> msu of lhs digits 722 src/decNumber/decNumber.c msub=ub+D2U(rhs->digits)-1; // -> msu of rhs digits 723 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 724 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 751 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 845 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(lhs->digits)-1)*sizeof(Unit); digits 859 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); digits 960 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 1017 src/decNumber/decNumber.c dcmul.digits=lhs->digits+rhs->digits; // just enough digits 1023 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(dcmul.digits)-1)*sizeof(Unit); digits 1084 src/decNumber/decNumber.c msua=ua+D2U(rhs->digits)-1; // -> msu of rhs digits 1085 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 1086 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 1107 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 1154 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 1213 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent digits 1214 src/decNumber/decNumber.c if (set->digits>=10) decNumberFromInt32(res, ae); // lay it out digits 1293 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 1313 src/decNumber/decNumber.c aset.digits=1; digits 1336 src/decNumber/decNumber.c p=(rhs->digits+t>set->digits?rhs->digits+t:set->digits)+3; digits 1345 src/decNumber/decNumber.c aset.digits=p; // as calculated digits 1359 src/decNumber/decNumber.c p=set->digits+3; digits 1374 src/decNumber/decNumber.c w->digits=2; // .. digits 1376 src/decNumber/decNumber.c aset.digits=p; digits 1379 src/decNumber/decNumber.c aset.digits=set->digits; // for final divide digits 1533 src/decNumber/decNumber.c dtiny.exponent=set->emin-set->digits; digits 1575 src/decNumber/decNumber.c dtiny.exponent=set->emin-set->digits; digits 1677 src/decNumber/decNumber.c msua=ua+D2U(lhs->digits)-1; // -> msu of lhs digits 1678 src/decNumber/decNumber.c msub=ub+D2U(rhs->digits)-1; // -> msu of rhs digits 1679 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 1680 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 1706 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 1794 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS digits 1819 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 1824 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { digits 1853 src/decNumber/decNumber.c Int shift=set->digits-1; digits 1855 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, 1, shift); digits 1948 src/decNumber/decNumber.c aset.digits=MAXI(lhs->digits, set->digits)+6+4; digits 1963 src/decNumber/decNumber.c aset.digits=reqdigits+(rhs->digits+rhs->exponent)+2; digits 1968 src/decNumber/decNumber.c if (!set->extended) aset.digits--; // use classic precision digits 1971 src/decNumber/decNumber.c if (aset.digits>DECNUMMAXP) {status|=DEC_Invalid_operation; break;} digits 1976 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit); digits 1997 src/decNumber/decNumber.c Int shift=set->digits-1; digits 1998 src/decNumber/decNumber.c dac->digits=decShiftToMost(dac->lsu, 1, shift); digits 2036 src/decNumber/decNumber.c if (dnOne.digits > 1) __builtin_unreachable (); digits 2170 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 2305 src/decNumber/decNumber.c || abs(rotate)>set->digits) // .. or out of range digits 2309 src/decNumber/decNumber.c if (res->digits>set->digits) decDecap(res, res->digits-set->digits); digits 2311 src/decNumber/decNumber.c if (rotate<0) rotate=set->digits+rotate; digits 2312 src/decNumber/decNumber.c if (rotate!=0 && rotate!=set->digits // zero or full rotation digits 2317 src/decNumber/decNumber.c Unit *msu=res->lsu+D2U(res->digits)-1; // current msu digits 2318 src/decNumber/decNumber.c Unit *msumax=res->lsu+D2U(set->digits)-1; //-V778 // rotation msu digits 2320 src/decNumber/decNumber.c res->digits=set->digits; // now full-length digits 2321 src/decNumber/decNumber.c msudigits=MSUDIGITS(res->digits); // actual digits in msu digits 2354 src/decNumber/decNumber.c rotate=set->digits-rotate; // make it right-rotate digits 2359 src/decNumber/decNumber.c decShiftToLeast(res->lsu, D2U(res->digits), shift); digits 2391 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, msumax-res->lsu+1); digits 2458 src/decNumber/decNumber.c || (abs(reqexp)+1)/2>(set->digits+set->emax)) // .. or out of range digits 2517 src/decNumber/decNumber.c || abs(shift)>set->digits) // .. or out of range digits 2523 src/decNumber/decNumber.c if (shift==set->digits) { // removing all digits 2525 src/decNumber/decNumber.c res->digits=1; // .. digits 2529 src/decNumber/decNumber.c if (res->digits+shift>set->digits) { digits 2530 src/decNumber/decNumber.c decDecap(res, res->digits+shift-set->digits); digits 2534 src/decNumber/decNumber.c if (res->digits>1 || *res->lsu) // if non-zero.. digits 2535 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, shift); digits 2539 src/decNumber/decNumber.c if (-shift>=res->digits) { // discarding all digits 2541 src/decNumber/decNumber.c res->digits=1; // .. digits 2544 src/decNumber/decNumber.c decShiftToLeast(res->lsu, D2U(res->digits), -shift); digits 2545 src/decNumber/decNumber.c res->digits-=(-shift); digits 2664 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 2712 src/decNumber/decNumber.c workp=MAXI(set->digits+1, rhs->digits); // actual rounding precision digits 2716 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); digits 2738 src/decNumber/decNumber.c exp=f->exponent+f->digits; // adjusted to Hull rules digits 2739 src/decNumber/decNumber.c f->exponent=-(f->digits); // to range digits 2750 src/decNumber/decNumber.c workset.digits=workp; // p for initial calculation digits 2751 src/decNumber/decNumber.c t->bits=0; t->digits=3; digits 2752 src/decNumber/decNumber.c a->bits=0; a->digits=3; digits 2796 src/decNumber/decNumber.c workset.digits=3; // initial p digits 2797 src/decNumber/decNumber.c for (; workset.digits<maxp;) { digits 2799 src/decNumber/decNumber.c workset.digits=MINI(workset.digits*2-2, maxp); digits 2838 src/decNumber/decNumber.c workset.digits--; // maxp-1 is OK now digits 2839 src/decNumber/decNumber.c t->exponent=-a->digits-1; // make 0.5 ulp digits 2884 src/decNumber/decNumber.c if (b->digits*2-1 > workp) { // cannot fit digits 2903 src/decNumber/decNumber.c Int maxexp=set->emax-set->digits+1; digits 2914 src/decNumber/decNumber.c decShiftToLeast(a->lsu, D2U(a->digits), todrop); digits 2916 src/decNumber/decNumber.c a->digits-=todrop; // new length digits 2926 src/decNumber/decNumber.c Int ae=rhs->exponent+rhs->digits-1; // adjusted exponent digits 3008 src/decNumber/decNumber.c workset.digits=rhs->digits; // no length rounding digits 3060 src/decNumber/decNumber.c msua=ua+D2U(lhs->digits)-1; // -> msu of lhs digits 3061 src/decNumber/decNumber.c msub=ub+D2U(rhs->digits)-1; // -> msu of rhs digits 3062 src/decNumber/decNumber.c msuc=uc+D2U(set->digits)-1; // -> msu of result digits 3063 src/decNumber/decNumber.c msudigs=MSUDIGITS(set->digits); // [faster than remainder] digits 3089 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, uc-res->lsu); digits 3168 src/decNumber/decNumber.c dest->digits=src->digits; digits 3170 src/decNumber/decNumber.c if (src->digits>DECDPUN) { // more Units to come digits 3176 src/decNumber/decNumber.c smsup=src->lsu+D2U(src->digits); // -> source msu+1 digits 3251 src/decNumber/decNumber.c uByte *ub=bcd+dn->digits-1; // -> lsd digits 3285 src/decNumber/decNumber.c Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [target pointer] digits 3299 src/decNumber/decNumber.c dn->digits=n; // set digit count digits 3315 src/decNumber/decNumber.c ae=dn->exponent+dn->digits-1; // adjusted exponent digits 3332 src/decNumber/decNumber.c ae=dn->exponent+dn->digits-1; // adjusted exponent digits 3375 src/decNumber/decNumber.c dn->digits=1; digits 3404 src/decNumber/decNumber.c const Unit *up=dn->lsu+D2U(dn->digits)-1; // -> msu [input pointer] digits 3425 src/decNumber/decNumber.c if (exp!=0 || (*dn->lsu==0 && dn->digits==1)) return; digits 3430 src/decNumber/decNumber.c cut=MSUDIGITS(dn->digits); // [faster than remainder] digits 3443 src/decNumber/decNumber.c pre=dn->digits+exp; // digits before '.' digits 3446 src/decNumber/decNumber.c e=exp+dn->digits-1; // calculate E value digits 3486 src/decNumber/decNumber.c if (n<dn->digits) { // more to come, after '.' digits 3593 src/decNumber/decNumber.c Int reqdigits=set->digits; // local copy; requested DIGITS digits 3600 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 3605 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { digits 3662 src/decNumber/decNumber.c if ((res->digits-adjust)>set->digits) { digits 3663 src/decNumber/decNumber.c adjust=res->digits-set->digits; // to fit exactly digits 3666 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, -adjust); digits 3690 src/decNumber/decNumber.c if ((res->digits-adjust)>set->digits) { digits 3691 src/decNumber/decNumber.c adjust=res->digits-set->digits; // to fit exactly digits 3694 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, -adjust); digits 3713 src/decNumber/decNumber.c && rhs->digits<=DECDPUN digits 3715 src/decNumber/decNumber.c && rhs->exponent<=set->emax-set->digits+1 // [could clamp] digits 3716 src/decNumber/decNumber.c && rhs->digits<=reqdigits digits 3717 src/decNumber/decNumber.c && lhs->digits<=reqdigits) { digits 3722 src/decNumber/decNumber.c && (lhs->digits>=DECDPUN || // .. and no digits-count change digits 3723 src/decNumber/decNumber.c partial<(Int)powers[lhs->digits])) { // .. digits 3736 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, D2U(res->digits)); digits 3763 src/decNumber/decNumber.c exponent += (rhs->digits>reqdigits) ? 0 : rhs->digits-reqdigits-1; digits 3764 src/decNumber/decNumber.c if (lhs->digits+lhs->exponent-1 < exponent) { digits 3768 src/decNumber/decNumber.c dtiny.digits=1; digits 3783 src/decNumber/decNumber.c maxdigits=rhs->digits+padding; // virtual length of RHS digits 3784 src/decNumber/decNumber.c if (lhs->digits>maxdigits) maxdigits=lhs->digits; digits 3811 src/decNumber/decNumber.c res->digits=decUnitAddSub(lhs->lsu, D2U(lhs->digits), digits 3812 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), digits 3815 src/decNumber/decNumber.c if (res->digits<0) { // borrowed... digits 3816 src/decNumber/decNumber.c res->digits=-res->digits; digits 3830 src/decNumber/decNumber.c if (res->digits>reqdigits) digits 3831 src/decNumber/decNumber.c res->digits=decGetDigits(acc, D2U(res->digits)); digits 3832 src/decNumber/decNumber.c decSetCoeff(res, set, acc, res->digits, &residue, status); digits 3841 src/decNumber/decNumber.c if (res->digits<maxdigits) { digits 3842 src/decNumber/decNumber.c *(acc+D2U(res->digits))=0; // ensure leading 0 is there digits 3843 src/decNumber/decNumber.c res->digits=maxdigits; digits 3849 src/decNumber/decNumber.c if (res->digits>reqdigits) { digits 3850 src/decNumber/decNumber.c res->digits=decGetDigits(acc, D2U(res->digits)); digits 3851 src/decNumber/decNumber.c if (res->digits<maxdigits) res->digits=maxdigits; digits 3854 src/decNumber/decNumber.c decSetCoeff(res, set, acc, res->digits, &residue, status); digits 3866 src/decNumber/decNumber.c res->digits=decGetDigits(res->lsu, D2U(res->digits)); digits 3995 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS digits 4011 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 4016 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { digits 4057 src/decNumber/decNumber.c res->exponent=set->emin-set->digits+1; digits 4114 src/decNumber/decNumber.c exponent=(lhs->exponent+lhs->digits)-(rhs->exponent+rhs->digits); digits 4166 src/decNumber/decNumber.c maxdigits=rhs->digits+reqdigits-1; digits 4167 src/decNumber/decNumber.c if (lhs->digits>maxdigits) maxdigits=lhs->digits; digits 4186 src/decNumber/decNumber.c source=lhs->lsu+D2U(lhs->digits)-1; // msu of input array digits 4192 src/decNumber/decNumber.c var2units=D2U(rhs->digits); // rhs actual length (units) digits 4223 src/decNumber/decNumber.c var1initpad=(var1units-D2U(lhs->digits))*DECDPUN; digits 4453 src/decNumber/decNumber.c compare=decUnitCompare(accnext, tarunits, rhs->lsu, D2U(rhs->digits), digits 4501 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), digits 4656 src/decNumber/decNumber.c if (lhs->digits<rhs->digits) { // swap... digits 4666 src/decNumber/decNumber.c if (lhs->digits>set->digits) { digits 4671 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 4684 src/decNumber/decNumber.c if (rhs->digits>NEEDTWO) { // use fastpath... digits 4686 src/decNumber/decNumber.c ilhs=(lhs->digits+FASTDIGS-1)/FASTDIGS; // [ceiling] digits 4687 src/decNumber/decNumber.c irhs=(rhs->digits+FASTDIGS-1)/FASTDIGS; // .. digits 4725 src/decNumber/decNumber.c for (count=lhs->digits, cup=lhs->lsu, lip=zlhi; count>0; lip++) digits 4730 src/decNumber/decNumber.c for (count=rhs->digits, cup=rhs->lsu, rip=zrhi; count>0; rip++) digits 4807 src/decNumber/decNumber.c needbytes=(D2U(lhs->digits)+D2U(rhs->digits))*sizeof(Unit); digits 4822 src/decNumber/decNumber.c madlength=D2U(lhs->digits); // this won't change digits 4823 src/decNumber/decNumber.c mermsup=rhs->lsu+D2U(rhs->digits); // -> msu+1 of multiplier digits 4848 src/decNumber/decNumber.c res->digits=decGetDigits(acc, accunits); // count digits exactly digits 4861 src/decNumber/decNumber.c decSetCoeff(res, set, acc, res->digits, &residue, status); digits 5022 src/decNumber/decNumber.c d->exponent=-set->digits; // * 10**(-d) digits 5029 src/decNumber/decNumber.c Int shift=set->digits-1; digits 5032 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, 1, shift); digits 5047 src/decNumber/decNumber.c h=rhs->exponent+rhs->digits; digits 5064 src/decNumber/decNumber.c Int maxlever=(rhs->digits>8?1:0); digits 5076 src/decNumber/decNumber.c Int use=-rhs->digits-lever; // exponent to use for RHS digits 5085 src/decNumber/decNumber.c needbytes=sizeof(decNumber)+(D2U(rhs->digits)-1)*sizeof(Unit); digits 5109 src/decNumber/decNumber.c p=MAXI(x->digits, set->digits)+h+2; // [h<=8] digits 5147 src/decNumber/decNumber.c aset.digits=p*2; // double digits 5149 src/decNumber/decNumber.c tset.digits=p; digits 5164 src/decNumber/decNumber.c if (((a->digits+a->exponent)>=(t->digits+t->exponent+p+1)) digits 5165 src/decNumber/decNumber.c && (a->digits>=p)) break; digits 5176 src/decNumber/decNumber.c aset.digits=p+2; // sufficient precision digits 5201 src/decNumber/decNumber.c aset.digits=set->digits; // [use default rounding] digits 5347 src/decNumber/decNumber.c if (rhs->exponent==0 && set->digits<=40) { digits 5349 src/decNumber/decNumber.c if (rhs->lsu[0]==0 && rhs->lsu[1]==1 && rhs->digits==2) { // ln(10) digits 5351 src/decNumber/decNumber.c if (rhs->lsu[0]==10 && rhs->digits==2) { // ln(10) digits 5358 src/decNumber/decNumber.c if (rhs->lsu[0]==2 && rhs->digits==1) { // ln(2) digits 5371 src/decNumber/decNumber.c p=MAXI(rhs->digits, MAXI(set->digits, 7))+2; digits 5387 src/decNumber/decNumber.c pp=p+rhs->digits; digits 5407 src/decNumber/decNumber.c r=rhs->exponent+rhs->digits; // 'normalised' exponent digits 5415 src/decNumber/decNumber.c aset.digits=2; aset.round=DEC_ROUND_DOWN; digits 5429 src/decNumber/decNumber.c aset.digits=16; aset.round=DEC_ROUND_HALF_EVEN; // restore digits 5442 src/decNumber/decNumber.c if (rhs->digits > set->digits) { digits 5456 src/decNumber/decNumber.c aset.digits=pp; // working context digits 5457 src/decNumber/decNumber.c bset.digits=pp+rhs->digits; // wider context digits 5480 src/decNumber/decNumber.c (a->digits+a->exponent)>=(b->digits+b->exponent+set->digits+1)) { digits 5481 src/decNumber/decNumber.c if (a->digits==p) break; digits 5498 src/decNumber/decNumber.c aset.digits=pp; // working context digits 5499 src/decNumber/decNumber.c bset.digits=pp+rhs->digits; // wider context digits 5505 src/decNumber/decNumber.c aset.digits=set->digits; // [use default rounding] digits 5546 src/decNumber/decNumber.c Int reqdigits=set->digits; // requested DIGITS digits 5555 src/decNumber/decNumber.c if (lhs->digits>reqdigits) { digits 5560 src/decNumber/decNumber.c if (rhs->digits>reqdigits) { // [this only checks lostDigits] digits 5613 src/decNumber/decNumber.c if ((lhs->digits-adjust)>reqdigits) { digits 5623 src/decNumber/decNumber.c workset.digits=lhs->digits-adjust; // set requested length digits 5633 src/decNumber/decNumber.c if (res->digits==reqdigits) { // cannot shift by 1 digits 5638 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, 1); // shift digits 5652 src/decNumber/decNumber.c res->digits=decShiftToMost(res->lsu, res->digits, -adjust); digits 5660 src/decNumber/decNumber.c if (res->exponent>set->emax-res->digits+1) { // too big digits 5721 src/decNumber/decNumber.c if (lhs->digits>set->digits) { digits 5726 src/decNumber/decNumber.c if (rhs->digits>set->digits) { digits 5768 src/decNumber/decNumber.c result=decUnitCompare(lhs->lsu, D2U(lhs->digits), digits 5769 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), 0); digits 5913 src/decNumber/decNumber.c compare=decUnitCompare(lhs->lsu, D2U(lhs->digits), digits 5914 src/decNumber/decNumber.c rhs->lsu, D2U(rhs->digits), digits 6305 src/decNumber/decNumber.c for (d=0; d<dn->digits-1; d++) { // [don't strip the final digit] digits 6331 src/decNumber/decNumber.c Int maxd=set->emax-set->digits+1-dn->exponent; digits 6337 src/decNumber/decNumber.c decShiftToLeast(dn->lsu, D2U(dn->digits), d); digits 6339 src/decNumber/decNumber.c dn->digits-=d; // new length digits 6377 src/decNumber/decNumber.c static Int decShiftToMost(Unit *uar, Int digits, Int shift) { digits 6382 src/decNumber/decNumber.c if (shift==0) return digits; // [fastpath] nothing to do digits 6383 src/decNumber/decNumber.c if ((digits+shift)<=DECDPUN) { // [fastpath] single-unit case digits 6385 src/decNumber/decNumber.c return digits+shift; digits 6389 src/decNumber/decNumber.c source=uar+D2U(digits)-1; // where msu comes from digits 6396 src/decNumber/decNumber.c first=uar+D2U(digits+shift)-1; // where msu of source will end up digits 6417 src/decNumber/decNumber.c return digits+shift; digits 6508 src/decNumber/decNumber.c +(D2U(set->digits)-1)*sizeof(Unit)); digits 6539 src/decNumber/decNumber.c decSetCoeff(dest, set, src->lsu, src->digits, residue, status); digits 6592 src/decNumber/decNumber.c discard=len-set->digits; // digits to discard digits 6600 src/decNumber/decNumber.c dn->digits=len; // set the new length digits 6624 src/decNumber/decNumber.c dn->digits=1; // .. digits 6653 src/decNumber/decNumber.c if (set->digits<=0) { // special for Quantize/Subnormal :-( digits 6655 src/decNumber/decNumber.c dn->digits=1; // .. digits 6658 src/decNumber/decNumber.c count=set->digits; // now digits to end up with digits 6659 src/decNumber/decNumber.c dn->digits=count; // set the new length digits 6698 src/decNumber/decNumber.c if (set->digits<=0) { // special for Quantize/Subnormal :-( digits 6700 src/decNumber/decNumber.c dn->digits=1; // .. digits 6703 src/decNumber/decNumber.c count=set->digits; // now digits to end up with digits 6704 src/decNumber/decNumber.c dn->digits=count; // set the new length digits 6849 src/decNumber/decNumber.c uInt count=dn->digits; // digits to be checked digits 6859 src/decNumber/decNumber.c if ((dn->exponent+dn->digits)>set->emax+1) { digits 6873 src/decNumber/decNumber.c uInt count=dn->digits; // digits to be checked digits 6888 src/decNumber/decNumber.c if (dn->exponent+1==set->emin-set->digits+1) { //-V584 digits 6889 src/decNumber/decNumber.c if (count==1 && dn->digits==1) *sup=0; // here 9 -> 0[.9] digits 6892 src/decNumber/decNumber.c dn->digits--; digits 6908 src/decNumber/decNumber.c decUnitAddSub(dn->lsu, D2U(dn->digits), uarrone, 1, 0, dn->lsu, bump); digits 6938 src/decNumber/decNumber.c if (set->digits >= (dn->exponent+dn->digits)) { digits 6939 src/decNumber/decNumber.c dn->digits=decShiftToMost(dn->lsu, dn->digits, dn->exponent); digits 6966 src/decNumber/decNumber.c Int tinyexp=set->emin-dn->digits+1; // precalculate subnormal boundary digits 7003 src/decNumber/decNumber.c if (dn->exponent<=set->emax-set->digits+1) return; // neither needed digits 7006 src/decNumber/decNumber.c if (dn->exponent>set->emax-dn->digits+1) { // too big digits 7014 src/decNumber/decNumber.c shift=dn->exponent-(set->emax-set->digits+1); digits 7018 src/decNumber/decNumber.c dn->digits=decShiftToMost(dn->lsu, dn->digits, shift); digits 7042 src/decNumber/decNumber.c if (set->clamp) emax-=set->digits-1; // lower if clamping digits 7084 src/decNumber/decNumber.c Int count=set->digits; // nines to add digits 7085 src/decNumber/decNumber.c dn->digits=count; digits 7096 src/decNumber/decNumber.c dn->exponent=set->emax-set->digits+1; digits 7133 src/decNumber/decNumber.c etiny=set->emin-(set->digits-1); // smallest allowed exponent digits 7157 src/decNumber/decNumber.c workset.digits=dn->digits-adjust; // set requested length digits 7160 src/decNumber/decNumber.c decSetCoeff(dn, &workset, dn->lsu, dn->digits, residue, status); digits 7170 src/decNumber/decNumber.c dn->digits=decShiftToMost(dn->lsu, dn->digits, 1); digits 7199 src/decNumber/decNumber.c if (set->digits>DEC_MAX_MATH digits 7202 src/decNumber/decNumber.c else if ((rhs->digits>DEC_MAX_MATH digits 7203 src/decNumber/decNumber.c || rhs->exponent+rhs->digits>DEC_MAX_MATH+1 digits 7204 src/decNumber/decNumber.c || rhs->exponent+rhs->digits<2*(1-DEC_MAX_MATH)) digits 7228 src/decNumber/decNumber.c Int ilength=dn->digits+dn->exponent; // integral length digits 7316 src/decNumber/decNumber.c if (drop>=dn->digits) { // losing the whole thing digits 7318 src/decNumber/decNumber.c dn->digits=1; digits 7321 src/decNumber/decNumber.c msu=dn->lsu+D2U(dn->digits-drop)-1; // -> likely msu digits 7322 src/decNumber/decNumber.c cut=MSUDIGITS(dn->digits-drop); // digits to be in use in msu digits 7325 src/decNumber/decNumber.c dn->digits=decGetDigits(dn->lsu, msu-dn->lsu+1); digits 7383 src/decNumber/decNumber.c if (lhs->digits<=set->digits) decNumberCopy(res, lhs); // easy digits 7389 src/decNumber/decNumber.c uresp1=res->lsu+D2U(set->digits); digits 7393 src/decNumber/decNumber.c res->digits=D2U(set->digits)*DECDPUN; digits 7395 src/decNumber/decNumber.c if (res->digits>set->digits) decDecap(res, res->digits-set->digits); digits 7448 src/decNumber/decNumber.c Int digits=(len-1)*DECDPUN+1; // possible digits excluding msu digits 7455 src/decNumber/decNumber.c if (digits==1) break; // a zero has one digit digits 7456 src/decNumber/decNumber.c digits-=DECDPUN; // adjust for 0 unit digits 7461 src/decNumber/decNumber.c digits++; digits 7464 src/decNumber/decNumber.c digits++; digits 7467 src/decNumber/decNumber.c digits++; digits 7469 src/decNumber/decNumber.c for (pow=&powers[4]; *up>=*pow; pow++) digits++; digits 7476 src/decNumber/decNumber.c return digits; digits 71 src/decNumber/decNumber.h int32_t digits; /* Count of digits in the coefficient; >0 */ digits 180 src/decNumber/decNumber.h && (dn)->digits==1 \ digits 232 src/dps8/dps8_cable.c char * digits = "0123456789"; digits 233 src/dps8/dps8_cable.c q = strchr (digits, tolower (*p)); digits 49 src/dps8/dps8_decimal.c context->digits = 65; digits 70 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 120 src/dps8/dps8_decimal.c digits=(Int)(last-first)+1; // calculate digits .. digits 122 src/dps8/dps8_decimal.c if (digits!=0) digits 123 src/dps8/dps8_decimal.c dn->digits=digits; // count of actual digits [if 0, digits 130 src/dps8/dps8_decimal.c if ((dn->digits-scale-1)<-DECNUMMAXE) // underflow digits 142 src/dps8/dps8_decimal.c || ((dn->digits-scale-1)>DECNUMMAXE)) // overflow digits 150 src/dps8/dps8_decimal.c if (digits==0) digits 167 src/dps8/dps8_decimal.c digits--; digits 168 src/dps8/dps8_decimal.c if (digits==0) digits 227 src/dps8/dps8_decimal.c digits 235 src/dps8/dps8_decimal.c digits 293 src/dps8/dps8_decimal.c digits 294 src/dps8/dps8_decimal.c digits 312 src/dps8/dps8_decimal.c digits 337 src/dps8/dps8_decimal.c digits 338 src/dps8/dps8_decimal.c digits 346 src/dps8/dps8_decimal.c digits 356 src/dps8/dps8_decimal.c digits 381 src/dps8/dps8_decimal.c digits 382 src/dps8/dps8_decimal.c digits 391 src/dps8/dps8_decimal.c digits 431 src/dps8/dps8_decimal.c digits 463 src/dps8/dps8_decimal.c digits 464 src/dps8/dps8_decimal.c digits 475 src/dps8/dps8_decimal.c digits 479 src/dps8/dps8_decimal.c digits 488 src/dps8/dps8_decimal.c digits 489 src/dps8/dps8_decimal.c digits 506 src/dps8/dps8_decimal.c digits 507 src/dps8/dps8_decimal.c digits 513 src/dps8/dps8_decimal.c digits 515 src/dps8/dps8_decimal.c digits 520 src/dps8/dps8_decimal.c digits 524 src/dps8/dps8_decimal.c digits 542 src/dps8/dps8_decimal.c digits 553 src/dps8/dps8_decimal.c digits 555 src/dps8/dps8_decimal.c digits 559 src/dps8/dps8_decimal.c digits 561 src/dps8/dps8_decimal.c digits 564 src/dps8/dps8_decimal.c digits 565 src/dps8/dps8_decimal.c digits 570 src/dps8/dps8_decimal.c digits 581 src/dps8/dps8_decimal.c digits 585 src/dps8/dps8_decimal.c digits 597 src/dps8/dps8_decimal.c digits 598 src/dps8/dps8_decimal.c digits 601 src/dps8/dps8_decimal.c digits 616 src/dps8/dps8_decimal.c digits 643 src/dps8/dps8_decimal.c digits 644 src/dps8/dps8_decimal.c digits 647 src/dps8/dps8_decimal.c digits 652 src/dps8/dps8_decimal.c digits 660 src/dps8/dps8_decimal.c digits 669 src/dps8/dps8_decimal.c digits 672 src/dps8/dps8_decimal.c digits 683 src/dps8/dps8_decimal.c digits 686 src/dps8/dps8_decimal.c digits 687 src/dps8/dps8_decimal.c digits 689 src/dps8/dps8_decimal.c digits 693 src/dps8/dps8_decimal.c digits 720 src/dps8/dps8_decimal.c int safe = set->digits; digits 743 src/dps8/dps8_decimal.c if (r->exponent > sf && r->digits + r->exponent - sf > DECNUMDIGITS) { digits 744 src/dps8/dps8_decimal.c int drop = r->digits + r->exponent - (sf + nout); digits 747 src/dps8/dps8_decimal.c for (int i = 0; i < drop && i < r->digits; i ++) digits 751 src/dps8/dps8_decimal.c while (j < r->digits && bcd[j] == 0) digits 755 src/dps8/dps8_decimal.c if (j >= r->digits) digits 759 src/dps8/dps8_decimal.c uint32_t nd = (uint32_t) (r->digits - j); digits 760 src/dps8/dps8_decimal.c r->digits = (int32_t) nd; digits 781 src/dps8/dps8_decimal.c set->digits = min (DECNUMDIGITS, max (set->digits, r->digits + r->exponent - sf)); digits 788 src/dps8/dps8_decimal.c set->digits = safe; digits 798 src/dps8/dps8_decimal.c int r2digits = r2->digits; digits 810 src/dps8/dps8_decimal.c int excess = sf < 0 ? (decNumberIsZero (r) ? 0 : r->digits - nout) digits 815 src/dps8/dps8_decimal.c set->digits = excess; digits 817 src/dps8/dps8_decimal.c set->digits = safe; digits 828 src/dps8/dps8_decimal.c if (nout < r->digits) { // not enough space to move all digits digits 839 src/dps8/dps8_decimal.c set->digits = nout; digits 841 src/dps8/dps8_decimal.c set->digits = safe; digits 854 src/dps8/dps8_decimal.c int justif = nout - r->digits; digits 40 src/dps8/dps8_decimal.h sim_printf("%s:'%s E%d'\r\n", msg, getBCDn(dn, set->digits), dn->exponent); \ digits 10377 src/dps8/dps8_eis.c if (decNumberIsZero (x) || x->exponent + x->digits <= limit) digits 10381 src/dps8/dps8_eis.c int drop = x->digits - (limit - x->exponent); digits 10382 src/dps8/dps8_eis.c if (drop > x->digits) digits 10383 src/dps8/dps8_eis.c drop = x->digits; digits 10389 src/dps8/dps8_eis.c while (j < x->digits && bcd[j] == 0) digits 10393 src/dps8/dps8_eis.c if (j == x->digits) digits 10399 src/dps8/dps8_eis.c uint32_t n = (uint32_t) (x->digits - j); digits 10400 src/dps8/dps8_eis.c x->digits = (int32_t) n; digits 10441 src/dps8/dps8_eis.c if (drop >= x->digits) digits 10450 src/dps8/dps8_eis.c x->digits -= drop; digits 10451 src/dps8/dps8_eis.c decNumberSetBCD (x, bcd, (uint32_t) x->digits); digits 10474 src/dps8/dps8_eis.c int32_t ta = a->exponent + a->digits; digits 10475 src/dps8/dps8_eis.c int32_t tb = b->exponent + b->digits; digits 10478 src/dps8/dps8_eis.c return shift + 1 + lo->digits >= 65; digits 10487 src/dps8/dps8_eis.c hi = b->exponent + b->digits; digits 10489 src/dps8/dps8_eis.c hi = a->exponent + a->digits; digits 10491 src/dps8/dps8_eis.c hi = max (a->exponent + a->digits, b->exponent + b->digits); digits 10656 src/dps8/dps8_eis.c int safe = set.digits; digits 10657 src/dps8/dps8_eis.c set.digits = DECNUMDIGITS; digits 10661 src/dps8/dps8_eis.c set.digits = safe; digits 10673 src/dps8/dps8_eis.c if (op3->digits > 63 && e->S2 == CSFL) { digits 10680 src/dps8/dps8_eis.c int safe = set.digits; digits 10682 src/dps8/dps8_eis.c set.digits = 63; digits 10684 src/dps8/dps8_eis.c set.digits = safe; digits 10686 src/dps8/dps8_eis.c } else if (op3->digits > FIXED_OVERFLOW_DIGITS) { digits 10695 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 10699 src/dps8/dps8_eis.c int span = op3->digits - min(max(sf,0),ctz); digits 10704 src/dps8/dps8_eis.c int safe = set.digits; digits 10709 src/dps8/dps8_eis.c set.digits = span - FIXED_ALIGN_DIGITS; digits 10711 src/dps8/dps8_eis.c set.digits = safe; digits 11083 src/dps8/dps8_eis.c int safe = set.digits; digits 11084 src/dps8/dps8_eis.c set.digits = DECNUMDIGITS; digits 11088 src/dps8/dps8_eis.c set.digits = safe; digits 11110 src/dps8/dps8_eis.c if (op3->digits > 63 && e->S3 == CSFL) { digits 11117 src/dps8/dps8_eis.c int safe = set.digits; digits 11119 src/dps8/dps8_eis.c set.digits = 63; digits 11121 src/dps8/dps8_eis.c set.digits = safe; digits 11123 src/dps8/dps8_eis.c } else if (op3->digits > FIXED_OVERFLOW_DIGITS) { digits 11132 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 11136 src/dps8/dps8_eis.c int span = op3->digits - min(max(sf,0),ctz); digits 11141 src/dps8/dps8_eis.c int safe = set.digits; digits 11146 src/dps8/dps8_eis.c set.digits = span - FIXED_ALIGN_DIGITS; digits 11148 src/dps8/dps8_eis.c set.digits = safe; digits 11460 src/dps8/dps8_eis.c int safe = set.digits; digits 11461 src/dps8/dps8_eis.c set.digits = DECNUMDIGITS; digits 11465 src/dps8/dps8_eis.c set.digits = safe; digits 11477 src/dps8/dps8_eis.c if (op3->digits > 63 && e->S2 == CSFL) { digits 11484 src/dps8/dps8_eis.c int safe = set.digits; digits 11486 src/dps8/dps8_eis.c set.digits = 63; digits 11488 src/dps8/dps8_eis.c set.digits = safe; digits 11490 src/dps8/dps8_eis.c } else if (op3->digits > FIXED_OVERFLOW_DIGITS) { digits 11499 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 11503 src/dps8/dps8_eis.c int span = op3->digits - min(max(sf,0),ctz); digits 11508 src/dps8/dps8_eis.c int safe = set.digits; digits 11513 src/dps8/dps8_eis.c set.digits = span - FIXED_ALIGN_DIGITS; digits 11515 src/dps8/dps8_eis.c set.digits = safe; digits 11847 src/dps8/dps8_eis.c int safe = set.digits; digits 11848 src/dps8/dps8_eis.c set.digits = DECNUMDIGITS; digits 11852 src/dps8/dps8_eis.c set.digits = safe; digits 11864 src/dps8/dps8_eis.c if (op3->digits > 63 && e->S3 == CSFL) { digits 11871 src/dps8/dps8_eis.c int safe = set.digits; digits 11873 src/dps8/dps8_eis.c set.digits = 63; digits 11875 src/dps8/dps8_eis.c set.digits = safe; digits 11877 src/dps8/dps8_eis.c } else if (op3->digits > FIXED_OVERFLOW_DIGITS) { digits 11886 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) digits 11890 src/dps8/dps8_eis.c int span = op3->digits - min(max(sf,0),ctz); digits 11895 src/dps8/dps8_eis.c int safe = set.digits; digits 11900 src/dps8/dps8_eis.c set.digits = span - FIXED_ALIGN_DIGITS; digits 11902 src/dps8/dps8_eis.c set.digits = safe; digits 12672 src/dps8/dps8_eis.c digits 12680 src/dps8/dps8_eis.c digits 12739 src/dps8/dps8_eis.c digits 12740 src/dps8/dps8_eis.c digits 12746 src/dps8/dps8_eis.c digits 12752 src/dps8/dps8_eis.c digits 12753 src/dps8/dps8_eis.c digits 12797 src/dps8/dps8_eis.c digits 12808 src/dps8/dps8_eis.c digits 12810 src/dps8/dps8_eis.c digits 12816 src/dps8/dps8_eis.c digits 12823 src/dps8/dps8_eis.c digits 12827 src/dps8/dps8_eis.c digits 12838 src/dps8/dps8_eis.c digits 12839 src/dps8/dps8_eis.c digits 13014 src/dps8/dps8_eis.c digits 13046 src/dps8/dps8_eis.c digits 13047 src/dps8/dps8_eis.c digits 13058 src/dps8/dps8_eis.c digits 13062 src/dps8/dps8_eis.c digits 13073 src/dps8/dps8_eis.c digits 13074 src/dps8/dps8_eis.c digits 13091 src/dps8/dps8_eis.c digits 13092 src/dps8/dps8_eis.c digits 13098 src/dps8/dps8_eis.c digits 13101 src/dps8/dps8_eis.c digits 13106 src/dps8/dps8_eis.c digits 13110 src/dps8/dps8_eis.c digits 13188 src/dps8/dps8_eis.c digits 13199 src/dps8/dps8_eis.c digits 13201 src/dps8/dps8_eis.c digits 13205 src/dps8/dps8_eis.c digits 13207 src/dps8/dps8_eis.c digits 13210 src/dps8/dps8_eis.c digits 13211 src/dps8/dps8_eis.c digits 13216 src/dps8/dps8_eis.c digits 13227 src/dps8/dps8_eis.c digits 13231 src/dps8/dps8_eis.c digits 13243 src/dps8/dps8_eis.c digits 13244 src/dps8/dps8_eis.c digits 13247 src/dps8/dps8_eis.c digits 13258 src/dps8/dps8_eis.c digits 13287 src/dps8/dps8_eis.c digits 13288 src/dps8/dps8_eis.c digits 13293 src/dps8/dps8_eis.c digits 13315 src/dps8/dps8_eis.c digits 13322 src/dps8/dps8_eis.c digits 13333 src/dps8/dps8_eis.c digits 13343 src/dps8/dps8_eis.c digits 13344 src/dps8/dps8_eis.c digits 13346 src/dps8/dps8_eis.c digits 13359 src/dps8/dps8_eis.c digits 13362 src/dps8/dps8_eis.c digits 13363 src/dps8/dps8_eis.c digits 13365 src/dps8/dps8_eis.c digits 13369 src/dps8/dps8_eis.c digits 13555 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) digits 13559 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) digits 13603 src/dps8/dps8_eis.c if (n2 - op3->digits > 0) digits 13605 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op3->exponent - (n2 - op3->digits)); digits 13630 src/dps8/dps8_eis.c if (op1->digits >= op2->digits) { digits 13633 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op1->digits - op2->digits); digits 13635 src/dps8/dps8_eis.c } else if (op1->digits < op2->digits) { digits 13637 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op2->digits - op1->digits); digits 13647 src/dps8/dps8_eis.c op1->exponent,op2->exponent,op1->digits,op2->digits,_1a.digits,_2a.digits); digits 13997 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) digits 14001 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) digits 14046 src/dps8/dps8_eis.c if (n3 - op3->digits > 0) digits 14048 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op3->exponent - (n3 - op3->digits)); digits 14073 src/dps8/dps8_eis.c if (op1->digits >= op2->digits) { digits 14076 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op1->digits - op2->digits); digits 14078 src/dps8/dps8_eis.c } else if (op1->digits < op2->digits) { digits 14080 src/dps8/dps8_eis.c decNumberFromInt32(&_sf, op2->digits - op1->digits); digits 14091 src/dps8/dps8_eis.c op1->exponent ,op2->exponent, op1->digits, digits 14092 src/dps8/dps8_eis.c op2->digits, _1a.digits, _2a.digits);