This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, committed] libquadmath: Small fmaq and lgamma update


Tobias Burnus:
Sorry, I seemingly applied an old premature version of the patch instead of the one I had build and tested. Fixed by the attached patch (Rev. 193100).

Now with a nonzero file as attachment, it helps diffing -r193099:193100 instead of -r193109:193100.


I think I need a breakâ

Tobias
Index: math/fmaq.c
===================================================================
--- math/fmaq.c	(Revision 193099)
+++ math/fmaq.c	(Revision 193100)
@@ -77,7 +77,7 @@
 	 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 @@
 	      : (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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]