[libc-commits] [libc] [libc] Remove specific nan payload in math functions (PR #79165)

via libc-commits libc-commits at lists.llvm.org
Tue Jan 23 08:45:02 PST 2024


================
@@ -109,7 +109,7 @@ LLVM_LIBC_FUNCTION(float, asinf, (float x)) {
       fputil::set_errno_if_required(EDOM);
       fputil::raise_except_if_required(FE_INVALID);
     }
-    return x + FPBits::build_nan(Sign::POS, FPBits::FRACTION_MASK).get_val();
+    return x + FPBits::build_nan().get_val();
----------------
lntue wrote:

It was carried from the old implementations, where we didn't have `build_quiet_nan` yet.  They should all be replaced by `build_quiet_nan`.

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


More information about the libc-commits mailing list