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*



The following reply was made to PR bin/51839; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/51839: [PATCH] tests/lib/libm/t_scalbn: reset errno to 0
 before calling scalbn*
Date: Fri, 13 Jan 2017 11:32:39 +0100

 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