Print this page

        

*** 49,69 **** /* if y is nan, replace it by x */ if (y != y) y = x; ! /* if x is greater than y or x and y are unordered, replace x by y */ ! #if defined(COMPARISON_MACRO_BUG) ! if (x != x || x > y) ! #else ! if (!islessequal(x, y)) ! #endif x = y; /* ! * now x and y are either both NaN or both numeric; set the ! * sign of the result if either x or y has its sign set */ xx.ld = x; yy.ld = y; #if defined(__sparc) s = (xx.i[0] | yy.i[0]) & 0x80000000; --- 49,68 ---- /* if y is nan, replace it by x */ if (y != y) y = x; ! /* if x is nan, replace it by y */ ! if (x != x) ! x = y; ! ! /* At this point, x and y are either both numeric, or both NaN */ ! if (!isnan(x) && !islessequal(x, y)) x = y; /* ! * set the sign of the result if either x or y has its sign set */ xx.ld = x; yy.ld = y; #if defined(__sparc) s = (xx.i[0] | yy.i[0]) & 0x80000000;