Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/tgammal.c
          +++ new/usr/src/lib/libm/common/m9x/tgammal.c
↓ open down ↓ 873 lines elided ↑ open up ↑
 874  874  t0z3_l =  4.461599916947014419045492615933551648857380e-35L
 875  875  #endif
 876  876  ;
 877  877  /* INDENT ON */
 878  878  
 879  879  /*
 880  880   * gamma(x+i) for 0 <= x < 1
 881  881   */
 882  882  static struct LDouble
 883  883  gam_n(int i, long double x) {
 884      -        struct LDouble rr, yy;
      884 +        struct LDouble rr = {0.0L, 0.0L}, yy;
 885  885          long double r1, r2, t2, z, xh, xl, yh, yl, zh, z1, z2, zl, x5, wh, wl;
 886  886  
 887  887          /* compute yy = gamma(x+1) */
 888  888          if (x > 0.2845L) {
 889  889                  if (x > 0.6374L) {
 890  890                          r1 = x - t0z3;
 891  891                          r2 = CHOPPED((r1 - t0z3_l));
 892  892                          t2 = r1 - r2;
 893  893                          yy = GT3(r2, t2 - t0z3_l);
 894  894                  } else {
↓ open down ↓ 130 lines elided ↑ open up ↑
1025 1025          if (ix >= 0x7fff0000)
1026 1026                  return (x * ((hx < 0)? zero : x));      /* Inf or NaN */
1027 1027          if (x > overflow)       /* overflow threshold */
1028 1028                  return (x * 1.0e4932L);
1029 1029          if (hx >= 0x40020000) { /* x >= 8 */
1030 1030                  ww = large_gam(x, &m);
1031 1031                  w = ww.h + ww.l;
1032 1032                  return (scalbnl(w, m));
1033 1033          }
1034 1034  
1035      -        if (hx > 0) {           /* x from 0 to 8 */
     1035 +        if (hx > 0) {           /* 0 < x < 8 */
1036 1036                  i = (int) x;
1037 1037                  ww = gam_n(i, x - (long double) i);
1038 1038                  return (ww.h + ww.l);
1039 1039          }
1040 1040          /* INDENT OFF */
1041 1041          /* negative x */
1042 1042          /*
1043 1043           * compute xk =
1044 1044           *      -2 ... x is an even int (-inf is considered an even #)
1045 1045           *      -1 ... x is an odd int
↓ open down ↓ 121 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX