Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/Q/atan2pil.c
          +++ new/usr/src/lib/libm/common/Q/atan2pil.c
↓ open down ↓ 19 lines elided ↑ open up ↑
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  24   24   */
  25   25  /*
  26   26   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   27   * Use is subject to license terms.
  28   28   */
  29   29  
  30      -#pragma weak atan2pil = __atan2pil
  31      -
  32   30  #include "libm.h"
  33   31  
  34   32  /*
  35   33   * atan2pil(y,x) = atan2l(y, x) / pi
  36   34   */
  37   35  
  38   36  static const long double invpi = 3.183098861837906715377675267450287240689e-1L;
  39   37  
  40   38  long double
  41   39  atan2pil(long double y, long double x) {
  42   40          return (atan2l(y, x) * invpi);
  43   41  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX