This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Move "-sNaN" values into a separate variable (was: [PATCH RFC]<math.h> issignaling)
On Fri, 15 Mar 2013, Thomas Schwinge wrote:
> > glibc tests are not about how negation works for sNaN. You should have a
> > variable storing a negative sNaN (statically initialized to such) and use
> > that to test negative sNaN arguments to functions.
>
> Like this?
>
> * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
> variable.
Yes, like that.
--
Joseph S. Myers
joseph@codesourcery.com