workset 1513 src/decNumber/decNumber.c decContext workset=*set; // work workset 1523 src/decNumber/decNumber.c workset.round=DEC_ROUND_FLOOR; workset 1524 src/decNumber/decNumber.c workset.status=0; workset 1525 src/decNumber/decNumber.c decNumberPlus(res, rhs, &workset); workset 1526 src/decNumber/decNumber.c if (workset.status&(DEC_Inexact|DEC_NaNs)) { workset 1527 src/decNumber/decNumber.c set->status |= (workset.status&DEC_NaNs); workset 1534 src/decNumber/decNumber.c decAddOp(res, rhs, &dtiny, &workset, DECNEG, &status); workset 1554 src/decNumber/decNumber.c decContext workset=*set; // work workset 1565 src/decNumber/decNumber.c workset.round=DEC_ROUND_CEILING; workset 1566 src/decNumber/decNumber.c workset.status=0; workset 1567 src/decNumber/decNumber.c decNumberPlus(res, rhs, &workset); workset 1568 src/decNumber/decNumber.c if (workset.status&(DEC_Inexact|DEC_NaNs)) { workset 1569 src/decNumber/decNumber.c set->status |= (workset.status&DEC_NaNs); workset 1576 src/decNumber/decNumber.c decAddOp(res, rhs, &dtiny, &workset, 0, &status); workset 1599 src/decNumber/decNumber.c decContext workset=*set; // work workset 1620 src/decNumber/decNumber.c workset.round=DEC_ROUND_CEILING; workset 1629 src/decNumber/decNumber.c workset.round=DEC_ROUND_FLOOR; workset 1635 src/decNumber/decNumber.c decAddOp(res, lhs, &dtiny, &workset, sub, &status); // + or - workset 2629 src/decNumber/decNumber.c decContext workset, approxset; // work contexts workset 2742 src/decNumber/decNumber.c decContextDefault(&workset, DEC_INIT_DECIMAL64); workset 2743 src/decNumber/decNumber.c workset.emax=DEC_MAX_EMAX; workset 2744 src/decNumber/decNumber.c workset.emin=DEC_MIN_EMIN; workset 2750 src/decNumber/decNumber.c workset.digits=workp; // p for initial calculation workset 2786 src/decNumber/decNumber.c decMultiplyOp(a, a, f, &workset, &ignore); // a=a*f workset 2787 src/decNumber/decNumber.c decAddOp(a, a, t, &workset, 0, &ignore); // ..+t workset 2796 src/decNumber/decNumber.c workset.digits=3; // initial p workset 2797 src/decNumber/decNumber.c for (; workset.digits<maxp;) { workset 2799 src/decNumber/decNumber.c workset.digits=MINI(workset.digits*2-2, maxp); workset 2802 src/decNumber/decNumber.c decDivideOp(b, f, a, &workset, DIVIDE, &ignore); // b=f/a workset 2803 src/decNumber/decNumber.c decAddOp(b, b, a, &workset, 0, &ignore); // b=b+a workset 2804 src/decNumber/decNumber.c decMultiplyOp(a, b, t, &workset, &ignore); // a=b*0.5 workset 2838 src/decNumber/decNumber.c workset.digits--; // maxp-1 is OK now workset 2840 src/decNumber/decNumber.c decAddOp(b, a, t, &workset, DECNEG, &ignore); // b = a - 0.5 ulp workset 2841 src/decNumber/decNumber.c workset.round=DEC_ROUND_UP; workset 2842 src/decNumber/decNumber.c decMultiplyOp(b, b, b, &workset, &ignore); // b = mulru(b, b) workset 2843 src/decNumber/decNumber.c decCompareOp(b, f, b, &workset, COMPARE, &ignore); // b ? f, reversed workset 2848 src/decNumber/decNumber.c decAddOp(a, a, t, &workset, DECNEG, &ignore); // a = a - 1 ulp workset 2855 src/decNumber/decNumber.c decAddOp(b, a, t, &workset, 0, &ignore); // b = a + 0.5 ulp workset 2856 src/decNumber/decNumber.c workset.round=DEC_ROUND_DOWN; workset 2857 src/decNumber/decNumber.c decMultiplyOp(b, b, b, &workset, &ignore); // b = mulrd(b, b) workset 2858 src/decNumber/decNumber.c decCompareOp(b, b, f, &workset, COMPARE, &ignore); // b ? f workset 2862 src/decNumber/decNumber.c decAddOp(a, a, t, &workset, 0, &ignore); // a = a + 1 ulp workset 2889 src/decNumber/decNumber.c decMultiplyOp(b, b, b, &workset, &mstatus); // try the multiply workset 2894 src/decNumber/decNumber.c decCompareOp(t, b, rhs, &workset, COMPARE, &mstatus); // b ? rhs workset 2995 src/decNumber/decNumber.c decContext workset; // working context workset 3007 src/decNumber/decNumber.c workset=*set; // clone rounding, etc. workset 3008 src/decNumber/decNumber.c workset.digits=rhs->digits; // no length rounding workset 3009 src/decNumber/decNumber.c workset.traps=0; // no traps workset 3011 src/decNumber/decNumber.c decNumberQuantize(res, rhs, &dn, &workset); workset 3012 src/decNumber/decNumber.c status|=workset.status; workset 3020 src/decNumber/decNumber.c decContext workset=*set; // working context workset 3021 src/decNumber/decNumber.c workset.traps=0; // no traps workset 3022 src/decNumber/decNumber.c decNumberToIntegralExact(res, rhs, &workset); workset 3025 src/decNumber/decNumber.c set->status|=workset.status&DEC_Invalid_operation; workset 5621 src/decNumber/decNumber.c decContext workset; // work workset 5622 src/decNumber/decNumber.c workset=*set; // clone rounding, etc. workset 5623 src/decNumber/decNumber.c workset.digits=lhs->digits-adjust; // set requested length workset 5625 src/decNumber/decNumber.c decCopyFit(res, lhs, &workset, &residue, status); // fit to result workset 5626 src/decNumber/decNumber.c decApplyRound(res, &workset, residue, status); // .. and round workset 7116 src/decNumber/decNumber.c decContext workset; // work workset 7154 src/decNumber/decNumber.c workset=*set; // clone rounding, etc. workset 7155 src/decNumber/decNumber.c workset.digits=dn->digits-adjust; // set requested length workset 7156 src/decNumber/decNumber.c workset.emin-=adjust; // and adjust emin to match workset 7158 src/decNumber/decNumber.c decSetCoeff(dn, &workset, dn->lsu, dn->digits, residue, status); workset 7159 src/decNumber/decNumber.c decApplyRound(dn, &workset, *residue, status);