Lines Matching defs:aset
1410 decContext aset; /* working context */
1434 decContextDefault(&aset, DEC_INIT_DECIMAL64); /* clean context */
1442 aset.digits=1;
1443 decCopyFit(w, rhs, &aset, &residue, ©stat); /* copy & shorten */
1474 aset.digits=p; /* as calculated */
1475 aset.emax=DEC_MAX_MATH; /* usual bounds */
1476 aset.emin=-DEC_MAX_MATH; /* .. */
1477 aset.clamp=0; /* and no concrete format */
1478 decLnOp(a, rhs, &aset, &status); /* a=ln(rhs) */
1505 aset.digits=p;
1506 decLnOp(b, w, &aset, &ignore); /* b=ln(10) */
1508 aset.digits=set->digits; /* for final divide */
1509 decDivideOp(res, a, b, &aset, DIVIDE, &status); /* into result */
1964 decContext aset; /* working context */
2093 decContextDefault(&aset, DEC_INIT_DECIMAL64); /* clean context */
2094 aset.emax=DEC_MAX_MATH; /* usual bounds */
2095 aset.emin=-DEC_MAX_MATH; /* .. */
2096 aset.clamp=0; /* and no concrete format */
2108 aset.digits=MAXI(lhs->digits, set->digits)+6+4;
2120 aset=*set; /* clone the context */
2121 aset.round=DEC_ROUND_HALF_EVEN; /* internally use balanced */
2123 aset.digits=reqdigits+(rhs->digits+rhs->exponent)+2;
2125 if (!set->extended) aset.digits--; /* use classic precision */
2128 if (aset.digits>DECNUMMAXP) {status|=DEC_Invalid_operation; break;}
2131 /* aset.digits is the count of digits for the accumulator needed */
2133 needbytes=sizeof(decNumber)+(D2U(aset.digits)-1)*sizeof(Unit);
2142 /* here, aset is set up and accumulator is ready for use */
2148 decLnOp(dac, lhs, &aset, &status); /* dac=ln(lhs) */
2161 decMultiplyOp(dac, dac, rhs, &aset, &status); /* dac=dac*rhs */
2162 decExpOp(dac, dac, &aset, &status); /* dac=exp(dac) */
2180 decDivideOp(dac, &dnOne, lhs, &aset, DIVIDE, &status);
2210 decMultiplyOp(dac, dac, lhs, &aset, &status); /* dac=dac*x */
2214 decMultiplyOp(dac, dac, dac, &aset, &status); /* dac=dac*dac [square] */
2232 /* round subnormals [to set.digits rather than aset.digits] */
2243 decDivideOp(dac, &dnOne, dac, &aset, DIVIDE, &status);
5229 decContext aset, tset, dset; /* working contexts */
5309 decContextDefault(&aset, DEC_INIT_DECIMAL64);
5311 aset.emax=set->emax; /* usual bounds */
5312 aset.emin=set->emin; /* .. */
5313 aset.clamp=0; /* and no concrete format */
5417 aset.digits=p*2; /* double */
5430 decAddOp(a, a, t, &aset, 0, status); /* a=a+t */
5456 aset.digits=p+2; /* sufficient precision */
5468 decMultiplyOp(t, t, a, &aset, status); /* acc=acc*x */
5472 decMultiplyOp(t, t, t, &aset, status); /* acc=acc*acc [square] */
5481 aset.digits=set->digits; /* [use default rounding] */
5482 decCopyFit(res, a, &aset, &residue, status); /* copy & shorten */
5602 decContext aset, bset; /* working contexts */
5638 aset=*set; aset.round=DEC_ROUND_HALF_EVEN;
5640 decNumberFromString(res, LN10, &aset);
5644 aset=*set; aset.round=DEC_ROUND_HALF_EVEN;
5646 decNumberFromString(res, LN2, &aset);
5691 decContextDefault(&aset, DEC_INIT_DECIMAL64); /* 16-digit extended */
5696 decMultiplyOp(a, a, b, &aset, &ignore); /* a=a*b */
5700 aset.digits=2; aset.round=DEC_ROUND_DOWN;
5701 decCopyFit(b, rhs, &aset, &residue, &ignore); /* copy & shorten */
5709 aset.digits=16; aset.round=DEC_ROUND_HALF_EVEN; /* restore */
5710 decAddOp(a, a, b, &aset, 0, &ignore); /* acc=a+b */
5719 aset.emax=set->emax;
5720 aset.emin=set->emin;
5721 aset.clamp=0; /* no concrete format */
5723 bset=aset;
5732 aset.digits=pp; /* working context */
5763 decCompareOp(&cmp, rhs, &numone, &aset, COMPARE, &ignore); /* rhs=1 ? */
5773 decAddOp(a, a, b, &aset, 0, &ignore); /* a=a+b for next estimate */
5778 aset.digits=pp; /* working context */
5792 aset.digits=set->digits; /* [use default rounding] */
5793 decCopyFit(res, a, &aset, &residue, status); /* copy & shorten */