We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b417cf commit 3b17d52Copy full SHA for 3b17d52
libc/utils/MPFRWrapper/MPCommon.cpp
@@ -78,6 +78,9 @@ MPFRNumber MPFRNumber::acospi() const {
78
mpfr_acospi(result.value, value, mpfr_rounding);
79
return result;
80
#else
81
+ if (result.is_nan()) {
82
+ return result;
83
+ }
84
mpfr_acos(result.value, value, mpfr_rounding);
85
MPFRNumber value_pi(0.0, 1280);
86
mpfr_const_pi(value_pi.value, MPFR_RNDN);
0 commit comments