Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/LD/sinhl.c
          +++ new/usr/src/lib/libm/common/LD/sinhl.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 sinhl = __sinhl
       30 +#pragma weak __sinhl = sinhl
  31   31  
  32   32  #include "libm.h"
  33   33  #include "longdouble.h"
  34   34  
  35   35  /* SINH(X)
  36   36   * RETURN THE HYPERBOLIC SINE OF X
  37   37   *
  38   38   * Method :
  39   39   *      1. reduce x to non-negative by SINH(-x) = - SINH(x).
  40      - *      2. 
       40 + *      2.
  41   41   *
  42   42   *                                            EXPM1(x) + EXPM1(x)/(EXPM1(x)+1)
  43   43   *          0 <= x <= lnovft     : SINH(x) := --------------------------------
  44   44   *                                                            2
  45   45   *
  46   46   *     lnovft <= x <  INF        : SINH(x) := EXP(x-MEP1*ln2)*2**ME
  47      - *      
       47 + *
  48   48   * here
  49   49   *      lnovft          logarithm of the overflow threshold
  50   50   *                      = MEP1*ln2 chopped to machine precision.
  51   51   *      ME              maximum exponent
  52   52   *      MEP1            maximum exponent plus 1
  53   53   *
  54   54   * Special cases:
  55   55   *      SINH(x) is x if x is +INF, -INF, or NaN.
  56   56   *      only SINH(0)=0 is exact for finite argument.
  57   57   *
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX