Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/LD/cosl.c
          +++ new/usr/src/lib/libm/common/LD/cosl.c
↓ open down ↓ 71 lines elided ↑ open up ↑
  72   72  cosl(long double x) {
  73   73          long double y[2], z = 0.0L;
  74   74          int n, ix;
  75   75          int *px = (int *) &x;
  76   76  
  77   77          /* trig(Inf or NaN) is NaN */
  78   78          if (!finitel(x))
  79   79                  return x - x;
  80   80  
  81   81          /* High word of x. */
  82      -#if defined(_BIG_ENDIAN)
  83      -        ix = px[0];
  84      -#else
       82 +#if defined(__i386) || defined(__amd64)
  85   83          XTOI(px, ix);
       84 +#else
       85 +        ix = px[0];
  86   86  #endif
  87   87  
  88   88          /* |x| ~< pi/4 */
  89   89          ix &= 0x7fffffff;
  90   90          if (ix <= 0x3ffe9220)
  91   91                  return __k_cosl(x, z);
  92   92  
  93   93          /* argument reduction needed */
  94   94          else {
  95   95                  n = __rem_pio2l(x, y);
↓ open down ↓ 14 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX