[libc] [llvm] [libc][NFC] Refactor FPBits and remove LongDoubleBits specialization (PR #78192)

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 01:30:00 PST 2024


================
@@ -220,6 +270,9 @@ struct FPRepBase : public internal::FPLayout<fp_type> {
   }
 
   LIBC_INLINE constexpr StorageType uintval() const { return bits & FP_MASK; }
+  LIBC_INLINE constexpr StorageType set_uintval(StorageType value) {
+    return bits = (value & FP_MASK);
----------------
gchatelet wrote:

Thx for pointing this out, I messed up. This function was not supposed to return any value.

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


More information about the llvm-commits mailing list