Print this page

        

*** 56,76 **** /* if x is nan, replace it by y */ if (x != x) x = y; ! /* if x is less than y or x and y are unordered, replace x by y */ ! #if defined(COMPARISON_MACRO_BUG) ! if (x < y) ! #else ! if (!isgreaterequal(x, y)) ! #endif x = y; /* ! * now x and y are either both NaN or both numeric; clear the ! * sign of the result if either x or y has its sign clear */ xx.d = x; yy.d = y; #if defined(__sparc) s = ~(xx.i[0] & yy.i[0]) & 0x80000000; --- 56,71 ---- /* 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) && !isgreaterequal(x, y)) x = y; /* ! * clear the sign of the result if either x or y has its sign clear */ xx.d = x; yy.d = y; #if defined(__sparc) s = ~(xx.i[0] & yy.i[0]) & 0x80000000;