patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff
author Trevor Woerner <trevor.woerner@linaro.org>
Tue Feb 25 13:34:48 2014 -0500 (2014-02-25)
changeset 3302 ea7e988e6244
permissions -rw-r--r--
newlib: fix extract process for custom version

newlib: fix extract process for custom version

If the user specifies the use of a custom newlib version, the logic in the
extract function was reversed, so this step would fail.

Signed-off-by: Trevor Woerner <trevor.woerner@linaro.org>
[yann.morin.1998@free.fr: keep leading indentation]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <c727adf1b7bd2c1e891d.1393353347@openSUSE-i7>
Patchwork-Id: 324060
     1 --- trunk/src/acos.c	2009/12/08 16:49:43	733
     2 +++ trunk/src/acos.c	2009/12/09 20:51:38	734
     3 @@ -188,10 +188,7 @@
     4    else
     5      rnd_im = rnd_im == GMP_RNDU ? GMP_RNDD
     6        : rnd_im == GMP_RNDD ? GMP_RNDU
     7 -#if MPFR_VERSION_MAJOR >= 3
     8 -      : rnd_im == GMP_RNDA ? GMP_RNDZ
     9 -#endif
    10 -      : rnd_im;
    11 +      : rnd_im; /* both RNDZ and RNDA map to themselves for -asin(z) */
    12    rnd1 = RNDC(GMP_RNDN, rnd_im);
    13    mpfr_init2 (pi_over_2, p);
    14    for (;;)