Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/C/__tan.c
          +++ new/usr/src/lib/libm/common/C/__tan.c
↓ open down ↓ 113 lines elided ↑ open up ↑
 114  114  #define t3  q[8]
 115  115  #define t4  q[9]
 116  116  #define t5  q[10]
 117  117  #define t6  q[11]
 118  118  
 119  119  /* INDENT ON */
 120  120  
 121  121  
 122  122  double
 123  123  __k_tan(double x, double y, int k) {
 124      -        double a, t, z, w, s, c, r, rh, xh, xl;
      124 +        double a, t, z, w = 0.0L, s, c, r, rh, xh, xl;
 125  125          int i, j, hx, ix;
 126  126  
 127  127          t = one;
 128  128          hx = ((int *) &x)[HIWORD];
 129  129          ix = hx & 0x7fffffff;
 130      -        if (ix < 0x3fc40000) {
 131      -                if (ix < 0x3e400000) {
      130 +        if (ix < 0x3fc40000) {          /* 0.15625 */
      131 +                if (ix < 0x3e400000) {  /* 2^-27 */
 132  132                          if ((i = (int) x) == 0)         /* generate inexact */
 133  133                                  w = x;
 134  134                          t = y;
 135  135                  } else {
 136  136                          z = x * x;
 137  137                          t = y + (((t1 * x) * z) * (t2 + z * (t3 + z))) *
 138  138                                  ((t4 + z) * (t5 + z * (t6 + z)));
 139  139                          w = x + t;
 140  140                  }
 141  141                  if (k == 0)
↓ open down ↓ 54 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX