[PATCH] Make w_scalbln type-generic

Gabriel F. T. Gomes gftg@linux.vnet.ibm.com
Fri Dec 16 11:55:00 GMT 2016


On Thu, 15 Dec 2016 21:23:47 +0000
Joseph Myers <joseph@codesourcery.com> wrote:

> On Thu, 15 Dec 2016, Gabriel F. T. Gomes wrote:
> 
> > +FLOAT
> > +M_DECL_FUNC (__w_scalbln) (FLOAT x, long int n)
> > +{
> > +  if (!isfinite (x) || x == 0.0)
> > +    return x + x;
> > +
> > +  x = M_SUF (__scalbln) (x, n);
> > +
> > +  if (!isfinite (x) || x == 0.0)  
> 
> In both places where you have 0.0 you should have integer 0 in the 
> type-generic template.
> 
> OK with that change.
> 

Thanks.  Pushed with the change as e4d6a8356547.



More information about the Libc-alpha mailing list