[Issue 5628] std.math unittest disabled - roundoff error in pow() on SSE2

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 29 04:10:52 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=5628


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at ubuntu.com


--- Comment #5 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-11-29 04:10:40 PST ---
(In reply to comment #4)
> The test is wrong because of excess precision.
> To fix this bug we need to replace == with approxEqual and determine the
> allowed error, right?

Right, I've come some other failing tests in gdc that I've had to tweak to
allow an extra bit of rounding accuracy.

feqrel() should do the trick with this.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list