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/j0.c
          +++ new/usr/src/lib/libm/common/C/j0.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: j0(x),y0(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 j0 = __j0
  40      -#pragma weak y0 = __y0
       39 +#pragma weak __j0 = j0
       40 +#pragma weak __y0 = y0
  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-18,
  53   52  one     = 1.0,
↓ open down ↓ 269 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX