Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/Q/jnl.c
          +++ new/usr/src/lib/libm/common/Q/jnl.c
↓ open down ↓ 210 lines elided ↑ open up ↑
 211  211          if(sgn==1) return -b; else return b;
 212  212  }
 213  213  
 214  214  GENERIC ynl(n,x)
 215  215  int n; GENERIC x;{
 216  216          int i;
 217  217          int sign;
 218  218          GENERIC a, b, temp;
 219  219  
 220  220          if(x!=x) return x+x;
 221      -        if (x <= zero)
      221 +        if (x <= zero) {
 222  222                  if(x==zero)
 223  223                          return -one/zero;
 224  224                  else
 225  225                          return zero/zero;
      226 +        }
 226  227          sign = 1;
 227  228          if(n<0){
 228  229                  n = -n;
 229  230                  if((n&1) == 1) sign = -1;
 230  231          }
 231  232          if(n==0) return(y0l(x));
 232  233          if(n==1) return(sign*y1l(x));
 233  234          if(!finitel(x)) return zero;
 234  235  
 235  236          if(x>1.0e91L) { /* x >> n**2
↓ open down ↓ 36 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX