[compiler-rt] [builtins][NFC] Remove last usage of CRT_LDBL_128BIT (PR #68041)
Pranav Kant via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 2 14:20:44 PDT 2023
https://github.com/pranavk created https://github.com/llvm/llvm-project/pull/68041
Superseded by CRT_HAS_TF_MODE
>From 031a27331ca53add5f7f929929127550b9fb390c Mon Sep 17 00:00:00 2001
From: Pranav Kant <prka at google.com>
Date: Thu, 21 Sep 2023 17:12:12 +0000
Subject: [PATCH] [builtins][NFC] Remove last usage of CRT_LDBL_128BIT
Superceded by CRT_HAS_TF_MODE
---
compiler-rt/lib/builtins/fp_lib.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/compiler-rt/lib/builtins/fp_lib.h b/compiler-rt/lib/builtins/fp_lib.h
index 58eb45fcc729296..827e4bca25f4594 100644
--- a/compiler-rt/lib/builtins/fp_lib.h
+++ b/compiler-rt/lib/builtins/fp_lib.h
@@ -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;
@@ -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)
@@ -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);
}
@@ -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
More information about the llvm-commits
mailing list