Print this page
5261 libm should stop using synonyms.h
5298 fabs is 0-sized, confuses dis(1) and others
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gwr@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/Q/sinl.c
          +++ new/usr/src/lib/libm/common/Q/sinl.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 sinl = __sinl
       62 +#pragma weak __sinl = sinl
  63   63  
  64   64  #include "libm.h"
  65   65  #include "longdouble.h"
  66   66  
  67   67  long double
  68   68  sinl(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 ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX