Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/complex/k_cexp.c
          +++ new/usr/src/lib/libm/common/complex/k_cexp.c
↓ open down ↓ 109 lines elided ↑ open up ↑
 110  110  invln2 = 1.44269504088896338700e+00,    /* 0x3ff71547, 0x652b82fe */
 111  111  P1 = 1.66666666666666019037e-01,        /* 0x3FC55555, 0x5555553E */
 112  112  P2 = -2.77777777770155933842e-03,       /* 0xBF66C16C, 0x16BEBD93 */
 113  113  P3 = 6.61375632143793436117e-05,        /* 0x3F11566A, 0xAF25DE2C */
 114  114  P4 = -1.65339022054652515390e-06,       /* 0xBEBBBD41, 0xC5D26BF1 */
 115  115  P5 = 4.13813679705723846039e-08;        /* 0x3E663769, 0x72BEA4D0 */
 116  116  /* INDENT ON */
 117  117  
 118  118  double
 119  119  __k_cexp(double x, int *n) {
 120      -        double hi, lo, c, t;
      120 +        double hi = 0.0L, lo = 0.0L, c, t;
 121  121          int k, xsb;
 122  122          unsigned hx, lx;
 123  123  
 124  124          hx = HI_WORD(x);        /* high word of x */
 125  125          lx = LO_WORD(x);        /* low word of x */
 126  126          xsb = (hx >> 31) & 1;   /* sign bit of x */
 127  127          hx &= 0x7fffffff;       /* high word of |x| */
 128  128  
 129  129          /* filter out non-finite argument */
 130  130          if (hx >= 0x40e86a00) { /* if |x| > 50000 */
↓ open down ↓ 50 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX