[libc-commits] [libc] [libc] Remove unnecessary `FPBits` functions and properties (PR #79113)

Clement Courbet via libc-commits libc-commits at lists.llvm.org
Tue Jan 23 02:30:02 PST 2024


================
@@ -596,7 +581,7 @@ TEST(LlvmLibcFPBitsTest, Float128Type) {
                "0xBFFF2000000000000000000000000000 = "
                "(S: 1, E: 0x3FFF, M: 0x00002000000000000000000000000000)");
 
-  Float128Bits quiet_nan = Float128Bits(Float128Bits::build_quiet_nan(1));
+  Float128Bits quiet_nan = Float128Bits::build_quiet_nan(Sign::POS, 1);
----------------
legrosbuffle wrote:

Some nans are created with `1`, some with `1<<shift`. Let's maybe harmonize those (in a separate patch)

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


More information about the libc-commits mailing list