Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmvec/common/__vatan2f.c
          +++ new/usr/src/lib/libmvec/common/__vatan2f.c
↓ open down ↓ 43 lines elided ↑ open up ↑
  44   44  zero    =  0.0f,
  45   45  one     =  1.0f,
  46   46  q1      = -3.3333333333296428046e-01f,
  47   47  q2      =  1.9999999186853752618e-01f,
  48   48  twop24  =  16777216.0f;
  49   49  
  50   50  void
  51   51  __vatan2f( int n, float * restrict y, int stridey, float * restrict x,
  52   52          int stridex, float * restrict z, int stridez )
  53   53  {
  54      -        float           x0, x1, x2, y0, y1, y2, *pz0, *pz1, *pz2;
       54 +        float           x0, x1, x2, y0, y1, y2, *pz0 = 0, *pz1, *pz2;
  55   55          double          ah0, ah1, ah2;
  56   56          double          t0, t1, t2;
  57   57          double          sx0, sx1, sx2;
  58   58          double          sign0, sign1, sign2;
  59      -        int             i, k0, k1, k2, hx, sx, sy;
       59 +        int             i, k0 = 0, k1, k2, hx, sx, sy;
  60   60          int             hy0, hy1, hy2;
  61      -        float           base0, base1, base2;
       61 +        float           base0 = 0.0, base1, base2;
  62   62          double          num0, num1, num2;
  63   63          double          den0, den1, den2;
  64   64          double          dx0, dx1, dx2;
  65   65          double          dy0, dy1, dy2;
  66      -        double          db0, db1, db2;          
       66 +        double          db0, db1, db2;
  67   67  
  68   68          do
  69   69          {
  70   70  loop0:
  71   71                  hy0 = *(int*)y;
  72   72                  hx = *(int*)x;
  73   73                  sign0 = one;
  74   74                  sy = hy0 & 0x80000000;
  75   75                  hy0 &= ~0x80000000;
  76   76  
↓ open down ↓ 400 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX