Skip to content

Commit

Permalink
Merge pull request #1746 from redstar/ieee
Browse files Browse the repository at this point in the history
Make an unit test of std.math IEEE 754-2008 compliant.
  • Loading branch information
Iain Buclaw committed Dec 5, 2013
2 parents f011a95 + 072fec2 commit 1f9ccde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/math.d
Original file line number Diff line number Diff line change
Expand Up @@ -1881,13 +1881,13 @@ unittest
resetIeeeFlags();
x = exp(real.nan);
f = ieeeFlags;
assert(isIdentical(x,real.nan));
assert(isIdentical(abs(x), real.nan));
assert(f.flags == 0);

resetIeeeFlags();
x = exp(-real.nan);
f = ieeeFlags;
assert(isIdentical(x, -real.nan));
assert(isIdentical(abs(x), real.nan));
assert(f.flags == 0);

x = exp(NaN(0x123));
Expand Down

0 comments on commit 1f9ccde

Please sign in to comment.