Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/R/tanf.c
          +++ new/usr/src/lib/libm/common/R/tanf.c
↓ open down ↓ 68 lines elided ↑ open up ↑
  69   69  #define half    C[12]
  70   70  #define pio2_1  C[13]
  71   71  #define pio2_t  C[14]
  72   72  
  73   73  float
  74   74  tanf(float x)
  75   75  {
  76   76          double  y, z, w;
  77   77          float   f;
  78   78          int     n, ix, hx, hy;
       79 +        volatile int i;
  79   80  
  80   81          hx = *((int *)&x);
  81   82          ix = hx & 0x7fffffff;
  82   83  
  83   84          y = (double)x;
  84   85  
  85   86          if (ix <= 0x4016cbe4) {         /* |x| < 3*pi/4 */
  86   87                  if (ix <= 0x3f490fdb) {         /* |x| < pi/4 */
  87   88                          if (ix < 0x3c000000) {          /* |x| < 2**-7 */
  88   89                                  if (ix <= 0x39800000) { /* |x| < 2**-12 */
  89      -                                        volatile int    i = (int)y;
       90 +                                        i = (int)y;
  90   91  #ifdef lint
  91   92                                          i = i;
  92   93  #endif
  93   94                                          return (x);
  94   95                                  }
  95   96                                  return ((float)((y * T0) * (T1 + y * y)));
  96   97                          }
  97   98                          z = y * y;
  98   99                          return ((float)(((P0 * y) * (P1 + z * (P2 + z)) *
  99  100                              (P3 + z * (P4 + z))) *
↓ open down ↓ 59 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX