Don't raise a domain error in this case. This makes the function behave as all documentation specifies it should.
Signed-off-by: Martin Storsjö <[email protected]> --- mingw-w64-crt/math/x86/acosh.def.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mingw-w64-crt/math/x86/acosh.def.h b/mingw-w64-crt/math/x86/acosh.def.h index 7ecf08beb..329799dca 100644 --- a/mingw-w64-crt/math/x86/acosh.def.h +++ b/mingw-w64-crt/math/x86/acosh.def.h @@ -57,8 +57,7 @@ __FLT_ABI(acosh) (__FLT_TYPE x) } else if (x_class == FP_INFINITE) { - __FLT_RPT_DOMAIN ("acosh", x, 0.0, __FLT_NAN); - return __FLT_NAN; + return INFINITY; } if (x > __FLT_CST(0x1p32)) -- 2.17.1 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
