complex.c (csqrtq): NaN and INF fixes.
authorTobias Burnus <burnus@net-b.de>
Wed, 31 Oct 2012 15:46:59 +0000 (16:46 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Wed, 31 Oct 2012 15:46:59 +0000 (16:46 +0100)
commit737df6e61771e330559a152be1653b173012172b
tree1e8de664570b1111159d9aecd98b3bd2f96c3923
parentbe028f913fb3e7fc33d4b97f2c67a346f3ff0215
complex.c (csqrtq): NaN and INF fixes.

2012-10-31  Tobias Burnus  <burnus@net-b.de>
            Joseph Myers <joseph@codesourcery.com>
            David S. Miller <davem@davemloft.net>
            Ulrich Drepper <drepper@redhat.com>
            Marek Polacek <polacek@redhat.com>:
            Petr Baudis <pasky@suse.cz>

        * math/complex.c (csqrtq): NaN and INF fixes.
        * math/sqrtq.c (sqrt): NaN, INF and < 0 fixes.
        * math/expm1q.c (expm1q): Changes from GLIBC. Use expq for
        large parameters. Fix errno for boundary conditions.
        * math/finiteq.c (finiteq): Add comment.
        * math/fmaq.c (fmaq): Changes from GLIBC. Fix missing underflows
        and bad results for some subnormal results. Fix sign of inexact
        zero return. Fix sign of exact zero return.
        Ensure additions are not scheduled after fetestexcept.
        * math/jnq.c (jnq): Changes from GLIBC. Set up errno properly
        for ynq. Fix jnq precision.
        * math/nearbyintq.c (nearbyintq): Changes from GLIBC. Do not
        manipulate bits before adding and subtracting TWO112[sx].
        * math/rintq.c (rintq): Ditto.
        * math/scalbnq.c (scalbnq): Changes from GLIBC. Fix integer
        overflow.

Co-Authored-By: David S. Miller <davem@davemloft.net>
Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
Co-Authored-By: Ulrich Drepper <drepper@redhat.com>
From-SVN: r193037
libquadmath/ChangeLog
libquadmath/math/complex.c
libquadmath/math/expm1q.c
libquadmath/math/finiteq.c
libquadmath/math/fmaq.c
libquadmath/math/jnq.c
libquadmath/math/nearbyintq.c
libquadmath/math/rintq.c
libquadmath/math/scalblnq.c
libquadmath/math/scalbnq.c
libquadmath/math/sqrtq.c