[libc-commits] [libc] [libc] Make ffma functions constexpr (PR #226872)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Sat Oct 17 22:32:23 PDT 2026


================
@@ -157,7 +157,7 @@ fma(InType x, InType y, InType z) {
     }
   }
 
-  if (LIBC_UNLIKELY(x == 0 || y == 0 || z == 0))
+  if (LIBC_UNLIKELY(x_bits.is_zero() || y_bits.is_zero() || z_bits.is_zero()))
----------------
bassiounix wrote:

Why is this needed?

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


More information about the libc-commits mailing list