diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2023-04-18 14:43:06 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-04-18 14:43:31 +0300 |
commit | f87469dd5bcae461bd9fe4da4ee4958ecf353749 (patch) | |
tree | 574e587abd59712855a67b2537a023cabafe8ae6 | |
parent | 83aceaa5e291418eb15bf2f0b46b5e9d6ccb03ba (diff) |
Cygwin: fix return value of ilogbl(NaN)
Fixes: 792e51b72149 ("Add missing long double functions to Cygwin")
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/math/ilogbl.S | 4 | ||||
-rw-r--r-- | winsup/cygwin/release/3.4.7 | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/math/ilogbl.S b/winsup/cygwin/math/ilogbl.S index a4fe503ad..c75a7d0fd 100644 --- a/winsup/cygwin/math/ilogbl.S +++ b/winsup/cygwin/math/ilogbl.S @@ -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. */ diff --git a/winsup/cygwin/release/3.4.7 b/winsup/cygwin/release/3.4.7 index 1186e57f5..8ecfbc30a 100644 --- a/winsup/cygwin/release/3.4.7 +++ b/winsup/cygwin/release/3.4.7 @@ -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 |