[libc-commits] [libc] [libc][math][c++23] Add Fmabf16 math function (PR #182836)
via libc-commits
libc-commits at lists.llvm.org
Mon Feb 23 07:21:20 PST 2026
================
@@ -196,6 +196,10 @@ fma(InType x, InType y, InType z) {
y_exp += y_bits.get_biased_exponent();
z_exp += z_bits.get_biased_exponent();
+ if (LIBC_UNLIKELY(x_exp != InFPBits::MAX_BIASED_EXPONENT &&
+ y_exp != InFPBits::MAX_BIASED_EXPONENT && z_bits.is_inf()))
+ return cast<OutType>(z);
+
----------------
lntue wrote:
Move this special case inside the next `if`
https://github.com/llvm/llvm-project/pull/182836
More information about the libc-commits
mailing list