Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/LD/sinpil.c
          +++ new/usr/src/lib/libm/common/LD/sinpil.c
↓ open down ↓ 69 lines elided ↑ open up ↑
  70   70   */
  71   71  
  72   72  #include "libm.h"
  73   73  #include "libm_synonyms.h"
  74   74  #include "longdouble.h"
  75   75  
  76   76  #include <sys/isa_defs.h>
  77   77  
  78   78  #define I(q, m) ((int *) &(q))[m]
  79   79  #define U(q, m) ((unsigned *) &(q))[m]
  80      -#if defined(_LITTLE_ENDIAN)
       80 +#if defined(__i386) || defined(__amd64)
  81   81  #define LDBL_MOST_SIGNIF_I(ld)  ((I(ld, 2) << 16) | (0xffff & (I(ld, 1) >> 15)))
  82   82  #define LDBL_LEAST_SIGNIF_U(ld) U(ld, 0)
  83   83  #define PREC    64
  84   84  #define PRECM1  63
  85   85  #define PRECM2  62
  86   86  static const long double twoPRECM2 = 9.223372036854775808000000000000000e+18L;
  87   87  #else
  88   88  #define LDBL_MOST_SIGNIF_I(ld)  I(ld, 0)
  89   89  #define LDBL_LEAST_SIGNIF_U(ld) U(ld, sizeof(long double) / sizeof(int) - 1)
  90   90  #define PREC    113
↓ open down ↓ 85 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX