NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/49240: Some corner cases for pow() fail to work correctly
The following reply was made to PR lib/49240; it has been noted by GNATS.
From: Havard Eidnes <he%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/49240: Some corner cases for pow() fail to work correctly
Date: Tue, 30 Sep 2014 17:23:27 +0200 (CEST)
> I've dug some more, and it looks like the following four tests:
>
> assertEquals(NaN, pow(1, Infinity));
> assertEquals(NaN, pow(1, -Infinity));
> assertEquals(NaN, pow(-1, Infinity));
> assertEquals(NaN, pow(-1, -Infinity));
>
> are in fact erroneous, at least reportedly if one is to follow
> C99, and some (FreeBSD commit messages) claim the revised IEEE
> 754 of 2008. These are now all defined to give +1.0 as result.
> I'll follow that up with Google's V8 project.
The feedback I received there is that ECMAscript is specific
about mandating the old IEEE 754 rules in these 4 test cases.
I'm currently testing a wrapper patch for this issue in v8, so
that C99 systems also can do this "correctly".
Regards,
- Havard
Home |
Main Index |
Thread Index |
Old Index