Cygwin: fix return value of ilogbl(NaN)

Fixes: 792e51b721 ("Add missing long double functions to Cygwin")
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-04-18 13:43:06 +02:00
parent 836d04d98c
commit 2fbb06d3cb
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,8 @@ __MINGW_USYMBOL(ilogbl):
andb %ah, %dh
cmpb $0x05, %dh
je 1f /* Is +-Inf, jump. */
cmpb $0x01, %dh
je 1f /* Is +-Inf, jump. */
cmpb $0x40, %dh
je 2f /* Is +-Inf, jump. */
@ -53,6 +55,8 @@ __MINGW_USYMBOL(ilogbl):
andb %ah, %dh
cmpb $0x05, %dh
je 1f /* Is +-Inf, jump. */
cmpb $0x01, %dh
je 1f /* Is +-Inf, jump. */
cmpb $0x40, %dh
je 2f /* Is +-Inf, jump. */

View File

@ -15,3 +15,6 @@ Bug Fixes
- Fix bug in cygheap allocation size computation after fork. Addresses:
https://cygwin.com/pipermail/cygwin-developers/2023-April/012620.html
- Fix return value of ilogbl(NaN).
Addresses: https://cygwin.com/pipermail/cygwin/2023-April/253511.html