This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Make w_scalbln type-generic


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.

-- 
Joseph S. Myers
joseph@codesourcery.com


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