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/C/j1.c
          +++ new/usr/src/lib/libm/common/C/j1.c
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29  
  30   30  /*
  31   31   * floating point Bessel's function of the first and second kinds
  32   32   * of order zero: j1(x),y1(x);
  33   33   *
  34   34   * Special cases:
  35   35   *      y0(0)=y1(0)=yn(n,0) = -inf with division by zero signal;
  36   36   *      y0(-ve)=y1(-ve)=yn(n,-ve) are NaN with invalid signal.
  37   37   */
  38   38  
  39      -#pragma weak j1 = __j1
  40      -#pragma weak y1 = __y1
       39 +#pragma weak __j1 = j1
       40 +#pragma weak __y1 = y1
  41   41  
  42   42  #include "libm.h"
  43      -#include "libm_synonyms.h"
  44   43  #include "libm_protos.h"
  45   44  #include <math.h>
  46   45  #include <values.h>
  47   46  
  48   47  #define GENERIC double
  49   48  static const GENERIC
  50   49  zero    = 0.0,
  51   50  small   = 1.0e-5,
  52   51  tiny    = 1.0e-20,
  53   52  one     = 1.0,
↓ open down ↓ 299 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX