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 ↓ 63 lines elided ↑ open up ↑
  64   64  #define P3 q[4]
  65   65  #define P4 q[5]
  66   66  #define P5 q[6]
  67   67  #define P6 q[7]
  68   68  #define P7 q[8]
  69   69  #define T0 q[9]
  70   70  #define T1 q[10]
  71   71  
  72   72  float
  73   73  __k_tanf(double x, int n) {
  74      -        float ft;
       74 +        float ft = 0.0;
  75   75          double z, w;
  76   76          int ix;
  77   77  
  78   78          ix = ((int *) &x)[HIWORD] & ~0x80000000;        /* ix = leading |x| */
  79   79          /* small argument */
  80   80          if (ix < 0x3f800000) {          /* if |x| < 0.0078125 = 2**-7 */
  81   81                  if (ix < 0x3f100000) {  /* if |x| < 2**-14 */
  82   82                          if ((int) x == 0) {     /* raise inexact if x!=0 */
  83   83                                  ft = n == 0 ? (float) x : (float) (-one / x);
  84   84                          }
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX