Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmvec/common/__vatan.c
          +++ new/usr/src/lib/libmvec/common/__vatan.c
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40  
  41   41  #ifdef __RESTRICT
  42   42  #define restrict _Restrict
  43   43  #else
  44   44  #define restrict
  45   45  #endif
  46   46  
  47   47  void
  48   48  __vatan( int n, double * restrict x, int stridex, double * restrict y, int stridey )
  49   49  {
  50      -  double  f , z, ans, ansu , ansl , tmp , poly , conup , conlo , dummy;
       50 +  double  f , z, ans = 0.0L, ansu , ansl , tmp , poly , conup , conlo , dummy;
  51   51    double  f1,   ans1, ansu1, ansl1, tmp1, poly1, conup1, conlo1;
  52   52    double  f2,   ans2, ansu2, ansl2, tmp2, poly2, conup2, conlo2;
  53   53    int index, sign, intf, intflo, intz, argcount;
  54      -  int index1, sign1 ;
  55      -  int index2, sign2 ;
  56      -  double *yaddr,*yaddr1,*yaddr2;
       54 +  int index1, sign1 = 0;
       55 +  int index2, sign2 = 0;
       56 +  double *yaddr,*yaddr1 = 0,*yaddr2 = 0;
  57   57    extern const double __vlibm_TBL_atan1[];
  58   58    extern double fabs( double );
  59   59  
  60   60  /*    Power series  atan(x) = x + p1*x**3 + p2*x**5 + p3*x**7
  61   61   *    Error =  -3.08254E-18   On the interval  |x| < 1/64 */
  62   62  
  63   63  /* define dummy names for readability.  Use parray to help compiler optimize loads */
  64   64  #define p3    parray[0]
  65   65  #define p2    parray[1]
  66   66  #define p1    parray[2]
↓ open down ↓ 251 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX