Print this page
11210 libm should be cstyle(1ONBLD) clean

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/LD/nextafterl.c
          +++ new/usr/src/lib/libm/common/LD/nextafterl.c
↓ open down ↓ 43 lines elided ↑ open up ↑
  44   44                                          if (++px[n1] == 0) \
  45   45                                                  ++px[n0]; \
  46   46                  }
  47   47  #define DEC(px) { \
  48   48                          if (--px[n3] == 0xffffffff) \
  49   49                                  if (--px[n2] == 0xffffffff) \
  50   50                                          if (--px[n1] == 0xffffffff) \
  51   51                                                  --px[n0]; \
  52   52                  }
  53   53  #elif defined(__x86)
  54      -#define n0      2
  55      -#define n1      1
  56      -#define n2      0
  57      -#define n3      0
       54 +#define         n0      2
       55 +#define         n1      1
       56 +#define         n2      0
       57 +#define         n3      0
  58   58  /*
  59   59   * if pseudo-denormal, replace by the equivalent normal
  60   60   */
  61      -#define X86PDNRM1(x)    if (XBIASED_EXP(x) == 0 && (((int *) &x)[1] & \
       61 +#define X86PDNRM1(x)    if (XBIASED_EXP(x) == 0 && (((int *)&x)[1] & \
  62   62                                  0x80000000) != 0) \
  63      -                                ((int *) &x)[2] |= 1
       63 +                                ((int *)&x)[2] |= 1
  64   64  #define INC(px) { \
  65   65                          if (++px[n2] == 0) \
  66   66                                  if ((++px[n1] & ~0x80000000) == 0) \
  67   67                                          px[n1] = 0x80000000, ++px[n0]; \
  68   68                  }
  69   69  #define DEC(px) { \
  70   70                          if (--px[n2] == 0xffffffff) \
  71   71                                  if (--px[n1] == 0x7fffffff) \
  72   72                                          if ((--px[n0] & 0x7fff) != 0) \
  73   73                                                  px[n1] |= 0x80000000; \
  74   74                  }
  75   75  #endif
  76   76  
  77   77  long double
  78      -nextafterl(long double x, long double y) {
  79      -        int *px = (int *) &x;
  80      -        int *py = (int *) &y;
       78 +nextafterl(long double x, long double y)
       79 +{
       80 +        int *px = (int *)&x;
       81 +        int *py = (int *)&y;
  81   82  
  82   83          if (x == y)
  83   84                  return (y);             /* C99 requirement */
  84   85          if (x != x || y != y)
  85   86                  return (x * y);
  86   87  
  87   88          if (ISZEROL(x)) {       /* x == 0.0 */
  88   89                  px[n0] = py[n0] & XSGNMSK;
  89   90                  px[n1] = px[n2] = 0;
  90   91                  px[n3] = 1;
↓ open down ↓ 27 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX