This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use GCC's builtins for generating NaNs.
- From: Andreas Jaeger <aj at suse dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org, munroesj at us dot ibm dot com, rsa at us dot ibm dot com
- Date: Tue, 05 Mar 2013 22:07:35 +0100
- Subject: Re: [PATCH] Use GCC's builtins for generating NaNs.
- References: <1362512104-27910-1-git-send-email-thomas@codesourcery.com>
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