[PATCH] Make w_scalbln type-generic

Joseph Myers joseph@codesourcery.com
Thu Dec 15 21:24:00 GMT 2016


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



More information about the Libc-alpha mailing list