[libc-commits] [libc] [libc][NFC] Use FPBits builders instead of custom constructs (PR #75942)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Tue Dec 19 07:45:35 PST 2023


================
@@ -199,7 +199,7 @@ double set_exceptional(double x) {
       return x;
 
     if (fputil::quick_get_round() == FE_UPWARD)
-      return static_cast<double>(FPBits(FPBits::MIN_SUBNORMAL));
+      return FPBits::min_denormal();
----------------
gchatelet wrote:

Thx for pointing this out. Let's do this in a subsequent patch.

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


More information about the libc-commits mailing list