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] Use GCC's builtins for generating NaNs.


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


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