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] Remove __nan{f,,l} macros


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


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