Print this page


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