在 2019/4/16 14:23, Martin Storsjö 写道:
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mingw-w64-crt/math/x86/acosh.def.h 
> b/mingw-w64-crt/math/x86/acosh.def.h
> index 7ecf08beb..be54d2641 100644
> --- a/mingw-w64-crt/math/x86/acosh.def.h
> +++ b/mingw-w64-crt/math/x86/acosh.def.h
> @@ -58,7 +58,7 @@ __FLT_ABI(acosh) (__FLT_TYPE x)
>    else if (x_class == FP_INFINITE)
>      {
>        __FLT_RPT_DOMAIN ("acosh", x, 0.0, __FLT_NAN);

POSIX says this is not a domain error [1], so the line above should be
removed.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/acosh.html

> -      return __FLT_NAN;
> +      return INFINITY;
>      }
>  
>    if (x > __FLT_CST(0x1p32))
> 


-- 
Best regards,
LH_Mouse

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to