Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/fdim.c
          +++ new/usr/src/lib/libm/common/m9x/fdim.c
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37   *
  38   38   * fdim(x,y) raises overflow or inexact if x > y and x - y overflows
  39   39   * or is inexact.  It raises invalid if either operand is a signaling
  40   40   * NaN.  Otherwise, it raises no exceptions.
  41   41   */
  42   42  
  43   43  #include "libm.h"       /* for islessequal macro */
  44   44  
  45   45  double
  46   46  __fdim(double x, double y) {
  47      -#if defined(COMPARISON_MACRO_BUG)
  48      -        if (x == x && y == y && x <= y) {       /* } */
  49      -#else
  50   47          if (islessequal(x, y)) {
  51      -#endif
  52   48                  x = 0.0;
  53   49                  y = -x;
  54   50          }
  55   51          return (x - y);
  56   52  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX