[PATCH] Use GCC's builtins for generating NaNs.
Andreas Jaeger
aj@suse.com
Tue Mar 5 21:07:00 GMT 2013
On 03/05/2013 08:35 PM, Thomas Schwinge wrote:
> Tested on x86 and x86_64 GNU/Linux natively, and cross-tested for MIPS32
> O32 GNU/Linux; all with the PowerPC test already moved to top-level (see
> other patch).
>
> * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
> SUFFIX. Initialize qNaN_var with __builtin_nan family of
> functions.
> (TEST_TRUNC): Add SUFFIX argument. Initialize qNaN_var with
> __builtin_nan family of functions.
> * math/libm-test.inc (initialize): Initialize qnan_value with
> __builtin_nan family of functions.
> * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
> Remove variables.
> (init_signaling_nan, snan_float, snan_double, snan_ldouble):
> Remove functions.
> (TEST_FUNC): Add SUFFIX argument. Move sNaN_var into static
> storage class. Initialize qNaN_var and sNaN_var with
> __builtin_nan and __builtin_nans families of functions,
> respectively.
this is fine,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
More information about the Libc-alpha
mailing list