Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/fdimf.c
          +++ new/usr/src/lib/libm/common/m9x/fdimf.c
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40           * (assuming %f0 = x, %f1 = y, return value left in %f0):
  41   41           *
  42   42           * fcmps        %fcc0,%f0,%f1
  43   43           * st           %g0,[scratch]   ! use fzero instead of st/ld
  44   44           * ld           [scratch],%f2   ! if VIS is available
  45   45           * fnegs        %f2,%f3
  46   46           * fmovsle      %fcc0,%f2,%f0
  47   47           * fmovsle      %fcc0,%f3,%f1
  48   48           * fsubs        %f0,%f1,%f0
  49   49           */
  50      -#if defined(COMPARISON_MACRO_BUG)
  51      -        if (x == x && y == y && x <= y) {       /* } */
  52      -#else
  53   50          if (islessequal(x, y)) {
  54      -#endif
  55   51                  x = 0.0f;
  56   52                  y = -x;
  57   53          }
  58   54          return (x - y);
  59   55  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX