Home | History | Annotate | Download | only in libdecnumber

Lines Matching defs:workset

1664   decContext workset=*set;		     /* work */
1679 workset.round=DEC_ROUND_FLOOR;
1680 decAddOp(res, rhs, &dtiny, &workset, DECNEG, &status);
1700 decContext workset=*set; /* work */
1716 workset.round=DEC_ROUND_CEILING;
1717 decAddOp(res, rhs, &dtiny, &workset, 0, &status);
1740 decContext workset=*set; /* work */
1764 workset.round=DEC_ROUND_CEILING;
1773 workset.round=DEC_ROUND_FLOOR;
1779 decAddOp(res, lhs, &dtiny, &workset, sub, &status); /* + or - */
2799 decContext workset, approxset; /* work contexts */
2916 decContextDefault(&workset, DEC_INIT_DECIMAL64);
2917 workset.emax=DEC_MAX_EMAX;
2918 workset.emin=DEC_MIN_EMIN;
2924 workset.digits=workp; /* p for initial calculation */
2960 decMultiplyOp(a, a, f, &workset, &ignore); /* a=a*f */
2961 decAddOp(a, a, t, &workset, 0, &ignore); /* ..+t */
2970 workset.digits=3; /* initial p */
2971 for (; workset.digits<maxp;) {
2973 workset.digits=MINI(workset.digits*2-2, maxp);
2976 decDivideOp(b, f, a, &workset, DIVIDE, &ignore); /* b=f/a */
2977 decAddOp(b, b, a, &workset, 0, &ignore); /* b=b+a */
2978 decMultiplyOp(a, b, t, &workset, &ignore); /* a=b*0.5 */
3010 /* Here workset.digits=maxp and t=0.5, and a->digits determines */
3012 workset.digits--; /* maxp-1 is OK now */
3014 decAddOp(b, a, t, &workset, DECNEG, &ignore); /* b = a - 0.5 ulp */
3015 workset.round=DEC_ROUND_UP;
3016 decMultiplyOp(b, b, b, &workset, &ignore); /* b = mulru(b, b) */
3017 decCompareOp(b, f, b, &workset, COMPARE, &ignore); /* b ? f, reversed */
3022 decAddOp(a, a, t, &workset, DECNEG, &ignore); /* a = a - 1 ulp */
3029 decAddOp(b, a, t, &workset, 0, &ignore); /* b = a + 0.5 ulp */
3030 workset.round=DEC_ROUND_DOWN;
3031 decMultiplyOp(b, b, b, &workset, &ignore); /* b = mulrd(b, b) */
3032 decCompareOp(b, b, f, &workset, COMPARE, &ignore); /* b ? f */
3036 decAddOp(a, a, t, &workset, 0, &ignore); /* a = a + 1 ulp */
3063 decMultiplyOp(b, b, b, &workset, &mstatus); /* try the multiply */
3068 decCompareOp(t, b, rhs, &workset, COMPARE, &mstatus); /* b ? rhs */
3175 decContext workset; /* working context */
3191 workset=*set; /* clone rounding, etc. */
3192 workset.digits=rhs->digits; /* no length rounding */
3193 workset.traps=0; /* no traps */
3195 decNumberQuantize(res, rhs, &dn, &workset);
3196 status|=workset.status;
3204 decContext workset=*set; /* working context */
3205 workset.traps=0; /* no traps */
3206 decNumberToIntegralExact(res, rhs, &workset);
3209 set->status|=workset.status&DEC_Invalid_operation;
5912 decContext workset; /* work */
5913 workset=*set; /* clone rounding, etc. */
5914 workset.digits=lhs->digits-adjust; /* set requested length */
5916 decCopyFit(res, lhs, &workset, &residue, status); /* fit to result */
5917 decApplyRound(res, &workset, residue, status); /* .. and round */
7424 decContext workset; /* work */
7468 workset=*set; /* clone rounding, etc. */
7469 workset.digits=dn->digits-adjust; /* set requested length */
7470 workset.emin-=adjust; /* and adjust emin to match */
7472 decSetCoeff(dn, &workset, dn->lsu, dn->digits, residue, status);
7473 decApplyRound(dn, &workset, *residue, status);