diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-02 18:08:05 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-02 18:08:05 +0000 |
commit | 88fa2d281161143bcd2be3a6073c7e5b6585700c (patch) | |
tree | 517894079a6a0cc1f7c00dc1e75d3ba4a68cd992 /libquadmath | |
parent | 66b2486624af0f0878b69b308faf96bb624484a9 (diff) | |
download | gcc-88fa2d281161143bcd2be3a6073c7e5b6585700c.tar.gz |
2012-11-01 Tobias Burnus <burnus@net-b.de>
* math/fmaq.c (fmaq): Fix build.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193100 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libquadmath')
-rw-r--r-- | libquadmath/ChangeLog | 4 | ||||
-rw-r--r-- | libquadmath/math/fmaq.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog index f1b4ce9b816..97ae46e1327 100644 --- a/libquadmath/ChangeLog +++ b/libquadmath/ChangeLog @@ -1,4 +1,8 @@ 2012-11-01 Tobias Burnus <burnus@net-b.de> + + * math/fmaq.c (fmaq): Fix build. + +2012-11-01 Tobias Burnus <burnus@net-b.de> Joseph Myers <joseph@codesourcery.com> * math/fmaq.c (fmaq): Merge from GLIBC. Handle cases diff --git a/libquadmath/math/fmaq.c b/libquadmath/math/fmaq.c index e5a9d37627d..1136ae376c3 100644 --- a/libquadmath/math/fmaq.c +++ b/libquadmath/math/fmaq.c @@ -77,7 +77,7 @@ fmaq (__float128 x, __float128 y, __float128 z) result nor whether there is underflow depends on its exact value, only on its sign. */ if (u.ieee.exponent + v.ieee.exponent - < IEEE854_FLT128_DOUBLE_BIAS - FLT128_MANT_DIG - 2) + < IEEE854_FLOAT128_BIAS - FLT128_MANT_DIG - 2) { int neg = u.ieee.negative ^ v.ieee.negative; __float128 tiny = neg ? -0x1p-16494L : 0x1p-16494L; @@ -94,10 +94,8 @@ fmaq (__float128 x, __float128 y, __float128 z) : (w.ieee.exponent == 0 || (w.ieee.exponent == 1 && w.ieee.negative != neg - && w.ieee.mantissa3 == 0 - && w.ieee.mantissa2 == 0 - && w.ieee.mantissa1 == 0 - && w.ieee.mantissa0 == 0))) + && w.ieee.mant_low == 0 + && w.ieee.mant_high == 0))) { volatile __float128 force_underflow = x * y; (void) force_underflow; |