[PATCH] Remove __nan{f,,l} macros
Joseph Myers
joseph@codesourcery.com
Tue Sep 13 22:58:00 GMT 2016
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
More information about the Libc-alpha
mailing list