NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/51839: [PATCH] tests/lib/libm/t_scalbn: reset errno to 0 before calling scalbn*
On Fri, Jan 13, 2017 at 04:40:00AM +0000, yaneurabeya%gmail.com@localhost wrote:
> <<<
>
> An application wishing to check for error situations should set errno to zero and call feclearexcept(FE_ALL_EXCEPT) before calling these functions. On return, if errno is non-zero or fetestexcept(FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW | FE_UNDERFLOW) is non-zero, an error has occurred.
>
> >>>
>
> FreeBSD definitely needs this to be done. The attached patch fixes that.
But it doesn't? It only provides half of that.
Joerg
Home |
Main Index |
Thread Index |
Old Index