[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


================
@@ -306,188 +304,95 @@ struct FPRepBase : public internal::FPLayout<fp_type> {
     return encode(exp, sig);
   }
 
+  // The floating point number representation as an unsigned integer.
+  StorageType bits = 0;
----------------
legrosbuffle wrote:

[Nit] should this be `bits{}` ? It would make it more obvious that this is also intended to work with class types (e.g. `BigInt`).

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


More information about the libc-commits mailing list