9 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
10 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN
18 #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __BIG_ENDIAN
19 /* This is the m68k variant of 80-bit long double, and this definition only works
20 * on archs where the alignment requirement of uint64_t is <= 4. */
29 #elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN
43 #elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __BIG_ENDIAN
58 #error Unsupported long double representation
61 #define FORCE_EVAL(x) do { \
62 if (sizeof(x) == sizeof(float)) { \
65 } else if (sizeof(x) == sizeof(double)) { \
66 volatile double __x; \
69 volatile long double __x; \
74 #define asuint(f) ((union{float _f; uint32_t _i;}){f})._i
75 #define asfloat(i) ((union{uint32_t _i; float _f;}){i})._f
76 #define asuint64(f) ((union{double _f; uint64_t _i;}){f})._i
77 #define asdouble(i) ((union{uint64_t _i; double _f;}){i})._f
79 #define EXTRACT_WORDS(hi,lo,d) \
81 uint64_t __u = asuint64(d); \
83 (lo) = (uint32_t)__u; \
86 #define GET_HIGH_WORD(hi,d) \
88 (hi) = asuint64(d) >> 32; \
91 #define GET_LOW_WORD(lo,d) \
93 (lo) = (uint32_t)asuint64(d); \
96 #define INSERT_WORDS(d,hi,lo) \
98 (d) = asdouble(((uint64_t)(hi)<<32) | (uint32_t)(lo)); \
101 #define SET_HIGH_WORD(d,hi) \
102 INSERT_WORDS(d, hi, (uint32_t)asuint64(d))
104 #define SET_LOW_WORD(d,lo) \
105 INSERT_WORDS(d, asuint64(d)>>32, lo)
107 #define GET_FLOAT_WORD(w,d) \
112 #define SET_FLOAT_WORD(d,w) \
117 hidden int __rem_pio2_large(double*,double*,int,int,int);
119 hidden int __rem_pio2(double,double*);
120 hidden double __sin(double,double,int);
121 hidden double __cos(double,double);
122 hidden double __tan(double,double,int);
123 hidden double __expo2(double);
125 hidden int __rem_pio2f(float,double*);
126 hidden float __sindf(double);
127 hidden float __cosdf(double);
128 hidden float __tandf(double,int);
129 hidden float __expo2f(float);
131 hidden int __rem_pio2l(long double, long double *);
132 hidden long double __sinl(long double, long double, int);
133 hidden long double __cosl(long double, long double);
134 hidden long double __tanl(long double, long double, int);
136 hidden long double __polevll(long double, const long double *, int);
137 hidden long double __p1evll(long double, const long double *, int);
139 extern int __signgam;
140 hidden double __lgamma_r(double, int *);
141 hidden float __lgammaf_r(float, int *);