This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove __nan{f,,l} macros
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Tue, 13 Sep 2016 22:58:09 +0000
- Subject: Re: [PATCH] Remove __nan{f,,l} macros
- Authentication-results: sourceware.org; auth=none
- References: <5e1bad49-d2da-4051-7778-4ca1e2b83e70@linux.vnet.ibm.com>
On Tue, 13 Sep 2016, Paul E. Murphy wrote:
> Use the GCC builtin instead. With the exception of the
> files built from a template, they are unused. This
> is preparation for making the s_nanF objects generated.
>
> * math/s_nanf.c: Remove __nanf undef.
> * math/s_nan.c: Remove __nan undef.
> * math/s_nanl.c: Remove __nanl undef.
>
> * sysdeps/generic/math_private.h (__nan): Remove macro
> override.
> (__nanf): Likewise.
> (__nanl): Likewise.
>
> * sysdeps/generic/math-type-macros.h (M_NAN): define
> using GCC builtin instead.
OK. To be clear, this may change code generation, and those changes are
appropriate (they have the effect of using a default NaN for the relevant
type rather than the result of converting a default NaN for double to that
type, which may be different on those platforms where a default NaN has
all-1s mantissa).
--
Joseph S. Myers
joseph@codesourcery.com