Lines Matching refs:workset

1692   decContext workset=*set;                   /* work  */  in uprv_decNumberNextMinus()  local
1707 workset.round=DEC_ROUND_FLOOR; in uprv_decNumberNextMinus()
1708 decAddOp(res, rhs, &dtiny, &workset, DECNEG, &status); in uprv_decNumberNextMinus()
1728 decContext workset=*set; /* work */ in uprv_decNumberNextPlus() local
1744 workset.round=DEC_ROUND_CEILING; in uprv_decNumberNextPlus()
1745 decAddOp(res, rhs, &dtiny, &workset, 0, &status); in uprv_decNumberNextPlus()
1768 decContext workset=*set; /* work */ in uprv_decNumberNextToward() local
1792 workset.round=DEC_ROUND_CEILING; in uprv_decNumberNextToward()
1801 workset.round=DEC_ROUND_FLOOR; in uprv_decNumberNextToward()
1807 decAddOp(res, lhs, &dtiny, &workset, sub, &status); /* + or - */ in uprv_decNumberNextToward()
2831 decContext workset, approxset; /* work contexts */ in uprv_decNumberSquareRoot() local
2948 uprv_decContextDefault(&workset, DEC_INIT_DECIMAL64); in uprv_decNumberSquareRoot()
2949 workset.emax=DEC_MAX_EMAX; in uprv_decNumberSquareRoot()
2950 workset.emin=DEC_MIN_EMIN; in uprv_decNumberSquareRoot()
2956 workset.digits=workp; /* p for initial calculation */ in uprv_decNumberSquareRoot()
2992 decMultiplyOp(a, a, f, &workset, &ignore); /* a=a*f */ in uprv_decNumberSquareRoot()
2993 decAddOp(a, a, t, &workset, 0, &ignore); /* ..+t */ in uprv_decNumberSquareRoot()
3002 workset.digits=3; /* initial p */ in uprv_decNumberSquareRoot()
3003 for (; workset.digits<maxp;) { in uprv_decNumberSquareRoot()
3005 workset.digits=MINI(workset.digits*2-2, maxp); in uprv_decNumberSquareRoot()
3008 decDivideOp(b, f, a, &workset, DIVIDE, &ignore); /* b=f/a */ in uprv_decNumberSquareRoot()
3009 decAddOp(b, b, a, &workset, 0, &ignore); /* b=b+a */ in uprv_decNumberSquareRoot()
3010 decMultiplyOp(a, b, t, &workset, &ignore); /* a=b*0.5 */ in uprv_decNumberSquareRoot()
3044 workset.digits--; /* maxp-1 is OK now */ in uprv_decNumberSquareRoot()
3046 decAddOp(b, a, t, &workset, DECNEG, &ignore); /* b = a - 0.5 ulp */ in uprv_decNumberSquareRoot()
3047 workset.round=DEC_ROUND_UP; in uprv_decNumberSquareRoot()
3048 decMultiplyOp(b, b, b, &workset, &ignore); /* b = mulru(b, b) */ in uprv_decNumberSquareRoot()
3049 decCompareOp(b, f, b, &workset, COMPARE, &ignore); /* b ? f, reversed */ in uprv_decNumberSquareRoot()
3054 decAddOp(a, a, t, &workset, DECNEG, &ignore); /* a = a - 1 ulp */ in uprv_decNumberSquareRoot()
3061 decAddOp(b, a, t, &workset, 0, &ignore); /* b = a + 0.5 ulp */ in uprv_decNumberSquareRoot()
3062 workset.round=DEC_ROUND_DOWN; in uprv_decNumberSquareRoot()
3063 decMultiplyOp(b, b, b, &workset, &ignore); /* b = mulrd(b, b) */ in uprv_decNumberSquareRoot()
3064 decCompareOp(b, b, f, &workset, COMPARE, &ignore); /* b ? f */ in uprv_decNumberSquareRoot()
3068 decAddOp(a, a, t, &workset, 0, &ignore); /* a = a + 1 ulp */ in uprv_decNumberSquareRoot()
3095 decMultiplyOp(b, b, b, &workset, &mstatus); /* try the multiply */ in uprv_decNumberSquareRoot()
3100 decCompareOp(t, b, rhs, &workset, COMPARE, &mstatus); /* b ? rhs */ in uprv_decNumberSquareRoot()
3210 decContext workset; /* working context */ in uprv_decNumberToIntegralExact() local
3226 workset=*set; /* clone rounding, etc. */ in uprv_decNumberToIntegralExact()
3227 workset.digits=rhs->digits; /* no length rounding */ in uprv_decNumberToIntegralExact()
3228 workset.traps=0; /* no traps */ in uprv_decNumberToIntegralExact()
3230 uprv_decNumberQuantize(res, rhs, &dn, &workset); in uprv_decNumberToIntegralExact()
3231 status|=workset.status; in uprv_decNumberToIntegralExact()
3239 decContext workset=*set; /* working context */ in uprv_decNumberToIntegralValue() local
3240 workset.traps=0; /* no traps */ in uprv_decNumberToIntegralValue()
3241 uprv_decNumberToIntegralExact(res, rhs, &workset); in uprv_decNumberToIntegralValue()
3244 set->status|=workset.status&DEC_Invalid_operation; in uprv_decNumberToIntegralValue()
5960 decContext workset; /* work */ local
5961 workset=*set; /* clone rounding, etc. */
5962 workset.digits=lhs->digits-adjust; /* set requested length */
5964 decCopyFit(res, lhs, &workset, &residue, status); /* fit to result */
5965 decApplyRound(res, &workset, residue, status); /* .. and round */
7473 decContext workset; /* work */ local
7517 workset=*set; /* clone rounding, etc. */
7518 workset.digits=dn->digits-adjust; /* set requested length */
7519 workset.emin-=adjust; /* and adjust emin to match */
7521 decSetCoeff(dn, &workset, dn->lsu, dn->digits, residue, status);
7522 decApplyRound(dn, &workset, *residue, status);