src/share/vm/runtime/sharedRuntimeTrig.cpp

changeset 6461
bdd155477289
parent 2314
f95d63e2154a
child 6876
710a3c8b516e
child 7000
631c3a4ea10c
     1.1 --- a/src/share/vm/runtime/sharedRuntimeTrig.cpp	Fri Jul 26 00:59:18 2013 +0200
     1.2 +++ b/src/share/vm/runtime/sharedRuntimeTrig.cpp	Thu Aug 22 09:39:54 2013 -0700
     1.3 @@ -658,7 +658,7 @@
     1.4  
     1.5  static double __kernel_cos(double x, double y)
     1.6  {
     1.7 -  double a,hz,z,r,qx;
     1.8 +  double a,h,z,r,qx;
     1.9    int ix;
    1.10    ix = __HI(x)&0x7fffffff;      /* ix = |x|'s high word*/
    1.11    if(ix<0x3e400000) {                   /* if x < 2**27 */
    1.12 @@ -675,9 +675,9 @@
    1.13        __HI(qx) = ix-0x00200000; /* x/4 */
    1.14        __LO(qx) = 0;
    1.15      }
    1.16 -    hz = 0.5*z-qx;
    1.17 -    a  = one-qx;
    1.18 -    return a - (hz - (z*r-x*y));
    1.19 +    h = 0.5*z-qx;
    1.20 +    a = one-qx;
    1.21 +    return a - (h - (z*r-x*y));
    1.22    }
    1.23  }
    1.24  

mercurial