Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/Q/__tanl.c
          +++ new/usr/src/lib/libm/common/Q/__tanl.c
↓ open down ↓ 103 lines elided ↑ open up ↑
 104  104          t9      = +2.391291152117265181501116961901122362937e-0004L,
 105  105          t10     = +9.691533169382729742394024173194981882375e-0005L,
 106  106          t11     = +3.927994733186415603228178184225780859951e-0005L,
 107  107          t12     = +1.588300018848323824227640064883334101288e-0005L,
 108  108          t13     = +6.916271223396808311166202285131722231723e-0006L;
 109  109  
 110  110  #define i0      0
 111  111  
 112  112  long double
 113  113  __k_tanl(long double x, long double y, int k) {
 114      -        long double a, t, z, w, s, c;
      114 +        long double a, t, z, w = 0, s, c;
 115  115          int *pt = (int *) &t, *px = (int *) &x;
 116  116          int i, j, hx, ix;
 117  117  
 118  118          t = 1.0L;
 119  119          hx = px[i0];
 120  120          ix = hx & 0x7fffffff;
 121  121          if (ix < 0x3ffc4000) {
 122  122                  *(3 - i0 + (int *) &t) = 1;     /* make t = one+ulp */
 123  123                  if (ix < 0x3fc60000) {
 124  124                          if (((int) (x * t)) < 1)        /* generate inexact */
↓ open down ↓ 39 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX