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

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


================
@@ -148,9 +148,7 @@ LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinp, float *cosp)) {
       fputil::set_errno_if_required(EDOM);
       fputil::raise_except_if_required(FE_INVALID);
     }
-    *sinp =
-        x +
-        FPBits::build_nan(fputil::Sign::POS, FPBits::FRACTION_MASK).get_val();
+    *sinp = x + FPBits::build_nan().get_val();
----------------
gchatelet wrote:

same here

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


More information about the libc-commits mailing list