This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Make w_scalbln type-generic
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "Gabriel F. T. Gomes" <gftg at linux dot vnet dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 15 Dec 2016 21:23:47 +0000
- Subject: Re: [PATCH] Make w_scalbln type-generic
- Authentication-results: sourceware.org; auth=none
- References: <1481830476-12837-1-git-send-email-gftg@linux.vnet.ibm.com>
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