Patchwork [committed] libquadmath: Small fmaq and lgamma update

login
register
mail settings
Submitter Tobias Burnus
Date Nov. 2, 2012, 6:14 p.m.
Message ID <50940D91.8070704@net-b.de>
Download mbox | patch
Permalink /patch/196710/
State New
Headers show

Comments

Tobias Burnus - Nov. 2, 2012, 6:14 p.m.
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

Patch

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;