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: Factor out initializers for libm-test.inc constants


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


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