This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
RE: Macros using __NO_LONG_DOUBLE_MATH
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Wilco Dijkstra <wdijkstr at arm dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 8 Jun 2015 17:02:33 +0000
- Subject: RE: Macros using __NO_LONG_DOUBLE_MATH
- Authentication-results: sourceware.org; auth=none
- References: <000801d09eb7$48f0aa80$dad1ff80$ at com> <alpine dot DEB dot 2 dot 10 dot 1506041456390 dot 12011 at digraph dot polyomino dot org dot uk> <000a01d0a1e7$0f3bf7d0$2db3e770$ at com> <alpine dot DEB dot 2 dot 10 dot 1506081235330 dot 25225 at digraph dot polyomino dot org dot uk> <000b01d0a208$16534b60$42f9e220$ at com>
On Mon, 8 Jun 2015, Wilco Dijkstra wrote:
> Making GLIBC support sNaN correctly is likely a lot of work - many functions
> start like this: if (isinf(x) || x == 0.0)... And there seems to be no test
But for the bulk of functions that should raise "invalid" on sNaN,
starting like that is no problem at all (it's fine for == 0.0 to raise
"invalid" in that case, no need to move to iszero).
--
Joseph S. Myers
joseph@codesourcery.com