|--- |FIXED
--- Comment #8 from Dlang Bot ---
dlang/phobos pull request #7321 "Fix Issue 5628 - std.math unittest disabled -
roundoff error in pow()" was merged into master:
- 7b9c47452152217dccc83ad8a35945ee472dda1a by Bernhard Seckinger:
Fix Issue 5628 - std.math unittes
created dlang/phobos pull request #7321 "Fix Issue 5628 - std.math
unittest disabled - roundoff error in pow()" fixing this issue:
- Fix Issue 5628 - std.math unittest disabled - roundoff error in pow() on SSE2
https://github.com/dlang/phobos/pull/7321
--
https://issues.dlang.org/show_bug.cgi?id=5628
--- Comment #6 from Vladimir Panteleev ---
Here is the extracted test case from std.math:
void main()
{
import std.math;
immutable real x = 46;
immutable float xf = x;
immutable double xd = x;
https://d.puremagic.com/issues/show_bug.cgi?id=5628
Iain Buclaw ibuc...@ubuntu.com changed:
What|Removed |Added
CC||ibuc...@ubuntu.com
http://d.puremagic.com/issues/show_bug.cgi?id=5628
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Component|DMD |Phobos
http://d.puremagic.com/issues/show_bug.cgi?id=5628
--- Comment #2 from Brad Roberts bra...@puremagic.com 2012-01-01 21:24:28 PST
---
The bug in comment 1 is fixed. There are 3 asserts left that fail w/in
std.math:
assert(pow(xd, neg2) == 1 / (x * x));
assert(pow(xf, neg8) == 1 / ((x *
http://d.puremagic.com/issues/show_bug.cgi?id=5628
--- Comment #1 from Brad Roberts bra...@puremagic.com 2011-04-30 22:21:19 PDT
---
Reduced test case:
Must be built with debugging turned on, otherwise it doesn't loop:
dmd -m64 -gc bug-pow.d
module bug;
real pow(real x, ubyte n) @trusted