[libc-commits] [libc] [libc] `FPRep` builders return `FPRep` instead of raw `StorageType` (PR #78588)
Clement Courbet via libc-commits
libc-commits at lists.llvm.org
Mon Jan 22 04:09:59 PST 2024
================
@@ -64,90 +64,101 @@ LIBC_INLINE_VAR constexpr Sign Sign::POS = Sign(false);
// └─────────▲─────────┘
// │
// ┌─────────┴─────────┐
-// │ FPRepBase<FPType> │
+// │ FPStorage<FPType> │
// └─────────▲─────────┘
// │
// ┌────────────┴─────────────┐
// │ │
-// ┌────────┴──────┐ ┌─────────────┴──────────────┐
-// │ FPRep<FPType> │ │ FPRep<FPType::X86_Binary80 │
-// └────────▲──────┘ └─────────────▲──────────────┘
+// ┌────────┴─────────┐ ┌──────────────┴──────────────────┐
+// │ FPRepSem<FPType> │ │ FPRepSem<FPType::X86_Binary80 │
+// └────────▲─────────┘ └──────────────▲──────────────────┘
// │ │
// └────────────┬─────────────┘
// │
// ┌─────┴─────┐
+// │ FPRep<T> │
+// └───────────┘
+// │
+// ┌─────┴─────┐
// │ FPBits<T> │
// └───────────┘
//
-// - 'FPLayout' defines only a few constants, namely the 'StorageType' and the
-// length of the sign, the exponent and significand parts.
-// - 'FPRepBase' builds more constants on top of those from 'FPLayout' like
-// exponent bias, shifts and masks. It also defines tools to assemble or test
+// - 'FPLayout' defines only a few constants, namely the 'StorageType' and
+// length of the sign, the exponent, fraction and significand parts.
+// - 'FPStorage' builds more constants on top of those from 'FPLayout' like
+// exponent bias and masks. It also holds the bit representation of the
+// floating point as a 'StorageType' type and defines tools to assemble or test
// these parts.
-// - 'FPRep' defines functions to interact with the floating point
+// - 'FPRepSem' defines functions to interact with the floating point
----------------
legrosbuffle wrote:
"interact semantically", to highlight what `Sem` means ?
https://github.com/llvm/llvm-project/pull/78588
More information about the libc-commits
mailing list