Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/m9x/scalblnl.c
          +++ new/usr/src/lib/libm/common/m9x/scalblnl.c
↓ open down ↓ 37 lines elided ↑ open up ↑
  38   38  #define XSET_EXP(k, x)  ((int *) &x)[0] = (((int *) &x)[0] & ~0x7fff0000) | \
  39   39                                  (k << 16)
  40   40  #define ISINFNANL(k, x) (k == 0x7fff)
  41   41  #define XTWOT_OFFSET    113
  42   42  static const long double xtwot = 10384593717069655257060992658440192.0L,
  43   43                                                                  /* 2^113 */
  44   44          twomtm1 = 4.814824860968089632639944856462318296E-35L;  /* 2^-114 */
  45   45  #elif defined(__x86)
  46   46  #define XSET_EXP(k, x)  ((int *) &x)[2] = (((int *) &x)[2] & ~0x7fff) | k
  47   47  #if defined(HANDLE_UNSUPPORTED)
  48      -#define ISINFNANL(k, x) (k == 0x7fff || k != 0 && \
  49      -                                (((int *) &x)[1] & 0x80000000) == 0)
       48 +#define      ISINFNANL(k, x) (k == 0x7fff || k != 0 && \
       49 +                         (((int *) &x)[1] & 0x80000000) == 0)
  50   50  #else
  51   51  #define ISINFNANL(k, x) (k == 0x7fff)
  52   52  #endif
  53   53  #define XTWOT_OFFSET    64
  54   54  static const long double xtwot = 18446744073709551616.0L,       /* 2^64 */
  55   55          twomtm1 = 2.7105054312137610850186E-20L;                /* 2^-65 */
  56   56  #endif
  57   57  
  58   58  long double
  59   59  scalblnl(long double x, long n) {
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX