Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions compiler-rt/lib/builtins/fp_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ COMPILER_RT_ABI fp_t __adddf3(fp_t a, fp_t b);
// being IEEE 128, but instead on being able to use a 128-bit floating-point
// type, which includes __float128.
// Right now this (incorrectly) stops the builtins from being used for x86.
#define CRT_LDBL_128BIT
#define CRT_HAS_TF_MODE
#define TF_C(c) c##L
typedef uint64_t half_rep_t;
Expand Down Expand Up @@ -213,7 +212,7 @@ static __inline void wideMultiply(rep_t a, rep_t b, rep_t *hi, rep_t *lo) {
#endif

#if defined(SINGLE_PRECISION) || defined(DOUBLE_PRECISION) || \
defined(CRT_LDBL_128BIT)
defined(CRT_HAS_TF_MODE)
#define typeWidth (sizeof(rep_t) * CHAR_BIT)
#define exponentBits (typeWidth - significandBits - 1)
#define maxExponent ((1 << exponentBits) - 1)
Expand Down Expand Up @@ -395,7 +394,7 @@ static __inline fp_t __compiler_rt_fmax(fp_t x, fp_t y) {

#elif defined(QUAD_PRECISION)

#if defined(CRT_LDBL_128BIT)
#if defined(CRT_HAS_TF_MODE)
static __inline fp_t __compiler_rt_logbl(fp_t x) {
return __compiler_rt_logbX(x);
}
Expand All @@ -417,7 +416,7 @@ static __inline long double __compiler_rt_scalbnl(long double x, int y) {
static __inline long double __compiler_rt_fmaxl(long double x, long double y) {
return crt_fmaxl(x, y);
}
#endif // CRT_LDBL_128BIT
#endif // CRT_HAS_TF_MODE

#endif // *_PRECISION

Expand Down