This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Make libm-test look up ulps by name at runtime
- From: Andreas Jaeger <aj at suse dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 18 May 2013 07:29:44 +0200
- Subject: Re: Make libm-test look up ulps by name at runtime
- References: <Pine dot LNX dot 4 dot 64 dot 1305172059270 dot 19066 at digraph dot polyomino dot org dot uk>
On 05/17/2013 11:00 PM, Joseph S. Myers wrote:
This patch converts the libm-test machinery to look up ulps by name at
runtime, rather than generating #defines for them. As discussed in
<http://sourceware.org/ml/libc-alpha/2013-05/msg00670.html>, this is
motivated by wanting to reuse an array of tests to test multiple
functions, in multiple rounding modes, so that a single TEST_* line
may in future not correspond to a single test name in a way that
gen-libm-test.pl can readily determine. Tested x86_64 and x86.
I think that with this patch, the generated libm-test.c should depend
only on libm-test.inc and the generated libm-test-ulps.h should depend
only on libm-test-ulps, although I haven't checked that (it's not a
specific motivation for this patch).
Ok, 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