HomeSort by: relevance | last modified time | path
    Searched defs:prec_s (Results 1 - 3 of 3) sorted by relevancy

  /src/external/lgpl3/mpfr/dist/src/
sin_cos.c 470 mpfr_prec_t prec_s, sh; local
477 prec_s = MPFR_PREC(s);
499 for (sh = 1, j = 0; mpfr_cmp_ui (x2, 0) != 0 && sh <= prec_s; sh <<= 1, j++)
501 if (sh > prec_s / 2) /* sin(x) = x + O(x^3), cos(x) = 1 + O(x^2) */
520 l2 = sin_bs_aux (Q2, S2, C2, y, 2 * sh - 1, prec_s);
521 /* we now have |S2/Q2/2^l2 - sin(X)| <= 9*2^(prec_s)
522 and |C2/Q2/2^l2 - cos(X)| <= 6*2^(prec_s), with X=y/2^(2sh-1) */
545 /* after j loops, the error is <= (11j-2)*2^(prec_s) */
547 /* reduce Q to prec_s bits */
548 l += reduce (Q, Q, prec_s);
    [all...]
sin_cos.c 470 mpfr_prec_t prec_s, sh; local
477 prec_s = MPFR_PREC(s);
499 for (sh = 1, j = 0; mpfr_cmp_ui (x2, 0) != 0 && sh <= prec_s; sh <<= 1, j++)
501 if (sh > prec_s / 2) /* sin(x) = x + O(x^3), cos(x) = 1 + O(x^2) */
520 l2 = sin_bs_aux (Q2, S2, C2, y, 2 * sh - 1, prec_s);
521 /* we now have |S2/Q2/2^l2 - sin(X)| <= 9*2^(prec_s)
522 and |C2/Q2/2^l2 - cos(X)| <= 6*2^(prec_s), with X=y/2^(2sh-1) */
545 /* after j loops, the error is <= (11j-2)*2^(prec_s) */
547 /* reduce Q to prec_s bits */
548 l += reduce (Q, Q, prec_s);
    [all...]
sin_cos.c 470 mpfr_prec_t prec_s, sh; local
477 prec_s = MPFR_PREC(s);
499 for (sh = 1, j = 0; mpfr_cmp_ui (x2, 0) != 0 && sh <= prec_s; sh <<= 1, j++)
501 if (sh > prec_s / 2) /* sin(x) = x + O(x^3), cos(x) = 1 + O(x^2) */
520 l2 = sin_bs_aux (Q2, S2, C2, y, 2 * sh - 1, prec_s);
521 /* we now have |S2/Q2/2^l2 - sin(X)| <= 9*2^(prec_s)
522 and |C2/Q2/2^l2 - cos(X)| <= 6*2^(prec_s), with X=y/2^(2sh-1) */
545 /* after j loops, the error is <= (11j-2)*2^(prec_s) */
547 /* reduce Q to prec_s bits */
548 l += reduce (Q, Q, prec_s);
    [all...]

Completed in 61 milliseconds