Skip to content

Commit

Permalink
Remove uses of nceg operators from std.math
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed Nov 26, 2013
1 parent ac041b5 commit de64ad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/math.d
Expand Up @@ -655,7 +655,7 @@ unittest
r = -r;
t = tan(x);
//printf("tan(%Lg) = %Lg, should be %Lg\n", x, t, r);
if (!isIdentical(r, t) && !(r!<>=0 && t!<>=0)) assert(fabs(r-t) <= .0000001);
if (!isIdentical(r, t) && !(r!=r && t!=t)) assert(fabs(r-t) <= .0000001);
}
// overflow
assert(isNaN(tan(real.infinity)));
Expand Down Expand Up @@ -2895,7 +2895,7 @@ real hypot(real x, real y) @safe pure nothrow

real u = fabs(x);
real v = fabs(y);
if (u !>= v) // check for NaN as well.
if (!(u >= v)) // check for NaN as well.
{
v = u;
u = fabs(y);
Expand Down Expand Up @@ -5352,7 +5352,7 @@ in
{
// both x and y must have the same sign, and must not be NaN.
assert(signbit(x) == signbit(y));
assert(x<>=0 && y<>=0);
assert(x==x && y==y);
}
body
{
Expand Down

0 comments on commit de64ad0

Please sign in to comment.