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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/complex/cprojl.c
          +++ new/usr/src/lib/libm/common/complex/cprojl.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
       25 +
  25   26  /*
  26   27   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   28   * Use is subject to license terms.
  28   29   */
  29   30  
  30   31  #pragma weak __cprojl = cprojl
  31   32  
  32      -#include "libm.h"               /* fabsl */
       33 +#include "libm.h"                       /* fabsl */
  33   34  #include "complex_wrapper.h"
  34   35  #include "longdouble.h"
  35   36  
  36      -/* INDENT OFF */
  37   37  static const long double zero = 0.0L;
  38      -/* INDENT ON */
       38 +
  39   39  
  40   40  ldcomplex
  41      -cprojl(ldcomplex z) {
       41 +cprojl(ldcomplex z)
       42 +{
  42   43          long double x, y;
  43   44          int hy;
  44   45  
  45   46          x = LD_RE(z);
  46   47          y = LD_IM(z);
  47   48  #if defined(__x86)
  48      -        hy = ((int *) &y)[2] << 16;
       49 +        hy = ((int *)&y)[2] << 16;
  49   50  #else
  50      -        hy = ((int *) &y)[0];
       51 +        hy = ((int *)&y)[0];
  51   52  #endif
       53 +
  52   54          if (isinfl(y)) {
  53   55                  LD_RE(z) = fabsl(y);
  54   56                  LD_IM(z) = hy >= 0 ? zero : -zero;
  55   57          } else if (isinfl(x)) {
  56   58                  LD_RE(z) = fabsl(x);
  57   59                  LD_IM(z) = hy >= 0 ? zero : -zero;
  58   60          }
       61 +
  59   62          return (z);
  60   63  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX