[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:03:25 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:

I like it.
How about `_LEN` to make them shorter? I'm fine with `_LENGTH` also.

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


More information about the libc-commits mailing list