• Home
  • Raw
  • Download

Lines Matching refs:workset

1696   decContext workset=*set;                   /* work  */  in uprv_decNumberNextMinus()  local
1711 workset.round=DEC_ROUND_FLOOR; in uprv_decNumberNextMinus()
1712 decAddOp(res, rhs, &dtiny, &workset, DECNEG, &status); in uprv_decNumberNextMinus()
1732 decContext workset=*set; /* work */ in uprv_decNumberNextPlus() local
1748 workset.round=DEC_ROUND_CEILING; in uprv_decNumberNextPlus()
1749 decAddOp(res, rhs, &dtiny, &workset, 0, &status); in uprv_decNumberNextPlus()
1772 decContext workset=*set; /* work */ in uprv_decNumberNextToward() local
1796 workset.round=DEC_ROUND_CEILING; in uprv_decNumberNextToward()
1805 workset.round=DEC_ROUND_FLOOR; in uprv_decNumberNextToward()
1811 decAddOp(res, lhs, &dtiny, &workset, sub, &status); /* + or - */ in uprv_decNumberNextToward()
2835 decContext workset, approxset; /* work contexts */ in uprv_decNumberSquareRoot() local
2952 uprv_decContextDefault(&workset, DEC_INIT_DECIMAL64); in uprv_decNumberSquareRoot()
2953 workset.emax=DEC_MAX_EMAX; in uprv_decNumberSquareRoot()
2954 workset.emin=DEC_MIN_EMIN; in uprv_decNumberSquareRoot()
2960 workset.digits=workp; /* p for initial calculation */ in uprv_decNumberSquareRoot()
2996 decMultiplyOp(a, a, f, &workset, &ignore); /* a=a*f */ in uprv_decNumberSquareRoot()
2997 decAddOp(a, a, t, &workset, 0, &ignore); /* ..+t */ in uprv_decNumberSquareRoot()
3006 workset.digits=3; /* initial p */ in uprv_decNumberSquareRoot()
3007 for (; workset.digits<maxp;) { in uprv_decNumberSquareRoot()
3009 workset.digits=MINI(workset.digits*2-2, maxp); in uprv_decNumberSquareRoot()
3012 decDivideOp(b, f, a, &workset, DIVIDE, &ignore); /* b=f/a */ in uprv_decNumberSquareRoot()
3013 decAddOp(b, b, a, &workset, 0, &ignore); /* b=b+a */ in uprv_decNumberSquareRoot()
3014 decMultiplyOp(a, b, t, &workset, &ignore); /* a=b*0.5 */ in uprv_decNumberSquareRoot()
3048 workset.digits--; /* maxp-1 is OK now */ in uprv_decNumberSquareRoot()
3050 decAddOp(b, a, t, &workset, DECNEG, &ignore); /* b = a - 0.5 ulp */ in uprv_decNumberSquareRoot()
3051 workset.round=DEC_ROUND_UP; in uprv_decNumberSquareRoot()
3052 decMultiplyOp(b, b, b, &workset, &ignore); /* b = mulru(b, b) */ in uprv_decNumberSquareRoot()
3053 decCompareOp(b, f, b, &workset, COMPARE, &ignore); /* b ? f, reversed */ in uprv_decNumberSquareRoot()
3058 decAddOp(a, a, t, &workset, DECNEG, &ignore); /* a = a - 1 ulp */ in uprv_decNumberSquareRoot()
3065 decAddOp(b, a, t, &workset, 0, &ignore); /* b = a + 0.5 ulp */ in uprv_decNumberSquareRoot()
3066 workset.round=DEC_ROUND_DOWN; in uprv_decNumberSquareRoot()
3067 decMultiplyOp(b, b, b, &workset, &ignore); /* b = mulrd(b, b) */ in uprv_decNumberSquareRoot()
3068 decCompareOp(b, b, f, &workset, COMPARE, &ignore); /* b ? f */ in uprv_decNumberSquareRoot()
3072 decAddOp(a, a, t, &workset, 0, &ignore); /* a = a + 1 ulp */ in uprv_decNumberSquareRoot()
3099 decMultiplyOp(b, b, b, &workset, &mstatus); /* try the multiply */ in uprv_decNumberSquareRoot()
3104 decCompareOp(t, b, rhs, &workset, COMPARE, &mstatus); /* b ? rhs */ in uprv_decNumberSquareRoot()
3214 decContext workset; /* working context */ in uprv_decNumberToIntegralExact() local
3230 workset=*set; /* clone rounding, etc. */ in uprv_decNumberToIntegralExact()
3231 workset.digits=rhs->digits; /* no length rounding */ in uprv_decNumberToIntegralExact()
3232 workset.traps=0; /* no traps */ in uprv_decNumberToIntegralExact()
3234 uprv_decNumberQuantize(res, rhs, &dn, &workset); in uprv_decNumberToIntegralExact()
3235 status|=workset.status; in uprv_decNumberToIntegralExact()
3243 decContext workset=*set; /* working context */ in uprv_decNumberToIntegralValue() local
3244 workset.traps=0; /* no traps */ in uprv_decNumberToIntegralValue()
3245 uprv_decNumberToIntegralExact(res, rhs, &workset); in uprv_decNumberToIntegralValue()
3248 set->status|=workset.status&DEC_Invalid_operation; in uprv_decNumberToIntegralValue()
5964 decContext workset; /* work */ local
5965 workset=*set; /* clone rounding, etc. */
5966 workset.digits=lhs->digits-adjust; /* set requested length */
5968 decCopyFit(res, lhs, &workset, &residue, status); /* fit to result */
5969 decApplyRound(res, &workset, residue, status); /* .. and round */
7477 decContext workset; /* work */ local
7521 workset=*set; /* clone rounding, etc. */
7522 workset.digits=dn->digits-adjust; /* set requested length */
7523 workset.emin-=adjust; /* and adjust emin to match */
7525 decSetCoeff(dn, &workset, dn->lsu, dn->digits, residue, status);
7526 decApplyRound(dn, &workset, *residue, status);