[libc-commits] [libc] [libc][math] Qualify fdim funtions to constexpr (PR #194137)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Sat Apr 25 13:47:21 PDT 2026


================
@@ -155,7 +175,7 @@ add_or_sub(InType x, InType y) {
   InFPBits max_bits(cpp::max(x_abs, y_abs));
   InFPBits min_bits(cpp::min(x_abs, y_abs));
 
-  InStorageType result_mant;
+  InStorageType result_mant = 0;
----------------
bassiounix wrote:

```suggestion
  InStorageType result_mant{};
```

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


More information about the libc-commits mailing list