Changeset View
Changeset View
Standalone View
Standalone View
head/lib/msun/src/math_private.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
#define IEEE_WORD_ORDER BYTE_ORDER | #define IEEE_WORD_ORDER BYTE_ORDER | ||||
#else | #else | ||||
#define IEEE_WORD_ORDER BIG_ENDIAN | #define IEEE_WORD_ORDER BIG_ENDIAN | ||||
#endif | #endif | ||||
#else /* __arm__ */ | #else /* __arm__ */ | ||||
#define IEEE_WORD_ORDER BYTE_ORDER | #define IEEE_WORD_ORDER BYTE_ORDER | ||||
#endif | #endif | ||||
/* A union which permits us to convert between a long double and | |||||
four 32 bit ints. */ | |||||
#if IEEE_WORD_ORDER == BIG_ENDIAN | #if IEEE_WORD_ORDER == BIG_ENDIAN | ||||
typedef union | typedef union | ||||
{ | { | ||||
long double value; | |||||
struct { | |||||
u_int32_t mswhi; | |||||
u_int32_t mswlo; | |||||
u_int32_t lswhi; | |||||
u_int32_t lswlo; | |||||
} parts32; | |||||
struct { | |||||
u_int64_t msw; | |||||
u_int64_t lsw; | |||||
} parts64; | |||||
} ieee_quad_shape_type; | |||||
#endif | |||||
#if IEEE_WORD_ORDER == LITTLE_ENDIAN | |||||
typedef union | |||||
{ | |||||
long double value; | |||||
struct { | |||||
u_int32_t lswlo; | |||||
u_int32_t lswhi; | |||||
u_int32_t mswlo; | |||||
u_int32_t mswhi; | |||||
} parts32; | |||||
struct { | |||||
u_int64_t lsw; | |||||
u_int64_t msw; | |||||
} parts64; | |||||
} ieee_quad_shape_type; | |||||
#endif | |||||
#if IEEE_WORD_ORDER == BIG_ENDIAN | |||||
typedef union | |||||
{ | |||||
double value; | double value; | ||||
struct | struct | ||||
{ | { | ||||
u_int32_t msw; | u_int32_t msw; | ||||
u_int32_t lsw; | u_int32_t lsw; | ||||
} parts; | } parts; | ||||
struct | struct | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 718 Lines • ▼ Show 20 Lines | |||||
#ifdef _COMPLEX_H | #ifdef _COMPLEX_H | ||||
float complex __ldexp_cexpf(float complex,int); | float complex __ldexp_cexpf(float complex,int); | ||||
#endif | #endif | ||||
/* long double precision kernel functions */ | /* long double precision kernel functions */ | ||||
long double __kernel_sinl(long double, long double, int); | long double __kernel_sinl(long double, long double, int); | ||||
long double __kernel_cosl(long double, long double); | long double __kernel_cosl(long double, long double); | ||||
long double __kernel_tanl(long double, long double, int); | long double __kernel_tanl(long double, long double, int); | ||||
long double __p1evll(long double, void *, int); | |||||
long double __polevll(long double, void *, int); | |||||
#endif /* !_MATH_PRIVATE_H_ */ | #endif /* !_MATH_PRIVATE_H_ */ |