Print this page
5261 libm should stop using synonyms.h

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/Q/cosl.c
          +++ new/usr/src/lib/libm/common/Q/cosl.c
↓ open down ↓ 51 lines elided ↑ open up ↑
  52   52   *
  53   53   * Special cases:
  54   54   *      Let trig be any of sin, cos, or tan.
  55   55   *      trig(+-INF)  is NaN, with signals;
  56   56   *      trig(NaN)    is that NaN;
  57   57   *
  58   58   * Accuracy:
  59   59   *      computer TRIG(x) returns trig(x) nearly rounded.
  60   60   */
  61   61  
  62      -#pragma weak cosl = __cosl
       62 +#pragma weak __cosl = cosl
  63   63  
  64   64  #include "libm.h"
  65   65  #include "longdouble.h"
  66   66  
  67   67  long double
  68   68  cosl(long double x) {
  69   69          long double y[2], z = 0.0L;
  70   70          int n, ix;
  71   71  
  72   72          ix = *(int *) &x;                       /* High word of x */
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX