This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Factor out initializers for libm-test.inc constants
- From: Andreas Jaeger <aj at suse dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 08 May 2013 17:50:10 +0200
- Subject: Re: Factor out initializers for libm-test.inc constants
- References: <Pine dot LNX dot 4 dot 64 dot 1305081543130 dot 23379 at digraph dot polyomino dot org dot uk>
On 05/08/2013 05:45 PM, Joseph S. Myers wrote:
As described in
<http://sourceware.org/ml/libc-alpha/2013-05/msg00119.html>, moving
libm tests into data will require that references to variables such as
qnan_value, in tests inside functions, are replaced by direct use of
associated initializers, in tests in static arrays.
This patch implements the change proposed there, of moving each of the
initializers into a macro. That way, gen-libm-test.pl will be able to
make the substitutions automatically for tests inside arrays. Once
the conversion is complete, the static variables for each value can
then be eliminated along with the substitutions in gen-libm-test.pl,
with the macros being renamed to match the old variables.
Ok, thanks,
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