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

via libc-commits libc-commits at lists.llvm.org
Thu Dec 14 08:17:04 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;
----------------
lntue wrote:

My only concern with this terminology is the inconsistency of : `BIT_WIDTH`, `EXPONENT_WIDTH` vs `FRACTION_BITS`

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


More information about the libc-commits mailing list