diff options
Diffstat (limited to 'jerry-math/nextafter.c')
-rw-r--r-- | jerry-math/nextafter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jerry-math/nextafter.c b/jerry-math/nextafter.c index cd11c2e3..95756508 100644 --- a/jerry-math/nextafter.c +++ b/jerry-math/nextafter.c @@ -28,8 +28,7 @@ #include "jerry-math-internal.h" double -nextafter (double x, - double y) +nextafter (double x, double y) { int hx, hy, ix, iy; unsigned lx, ly; @@ -42,7 +41,7 @@ nextafter (double x, ix = hx & 0x7fffffff; /* |x| */ iy = hy & 0x7fffffff; /* |y| */ - if (((ix >= 0x7ff00000) && ((ix - 0x7ff00000) | lx) != 0) /* x is nan */ + if (((ix >= 0x7ff00000) && ((ix - 0x7ff00000) | lx) != 0) /* x is nan */ || ((iy >= 0x7ff00000) && ((iy - 0x7ff00000) | ly) != 0)) /* y is nan */ { return x + y; |