[libc-commits] [libc] [libc][NFC] Rename `MANTISSA_WIDTH` in `FRACTION_BITS` (PR #75489)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Thu Dec 14 11:18:30 PST 2023


================
@@ -33,37 +33,37 @@ template <> struct FPBits<long double> : private FloatProperties<long double> {
   using FloatProperties<long double>::EXPONENT_MASK;
   using FloatProperties<long double>::EXPONENT_BIAS;
   using FloatProperties<long double>::EXPONENT_WIDTH;
-  using FloatProperties<long double>::MANTISSA_MASK;
-  using FloatProperties<long double>::MANTISSA_WIDTH;
+  using FloatProperties<long double>::FRACTION_MASK;
+  using FloatProperties<long double>::FRACTION_BITS;
----------------
gchatelet wrote:

Hmm but then it doesn't quite work with `UINTTYPE_BITS` -> `UINTTYPE_LENGTH` as it's unclear whether we count bits or bytes.

https://github.com/llvm/llvm-project/pull/75489


More information about the libc-commits mailing list