Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/LD/isnanl.c
          +++ new/usr/src/lib/libm/common/LD/isnanl.c
↓ open down ↓ 37 lines elided ↑ open up ↑
  38   38  isnanl(long double x) {
  39   39          int *px = (int *) &x;
  40   40          return ((px[0] & ~0x80000000) >= 0x7fff0000 &&
  41   41                  ((px[0] & ~0xffff0000) | px[1] | px[2] | px[3]) != 0);
  42   42  }
  43   43  #elif defined(__x86)
  44   44  int
  45   45  isnanl(long double x) {
  46   46          int *px = (int *) &x, t = px[2] & 0x7fff;
  47   47  #if defined(HANDLE_UNSUPPORTED)
  48      -        return (t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0 ||
  49      -                t != 0 && (px[1] & 0x80000000) == 0);
       48 +        return ((t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0) ||
       49 +                (t != 0 && (px[1] & 0x80000000) == 0));
  50   50  #else
  51   51          return (t == 0x7fff && ((px[1] & ~0x80000000) | px[0]) != 0);
  52   52  #endif
  53   53  }
  54   54  #endif  /* defined(__sparc) || defined(__x86) */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX