From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 6C2BD3858D1E; Tue, 18 Apr 2023 11:54:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C2BD3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681818869; bh=hHjydvUwdkIOUpH78HyP9gwAStE8SoVB7BfnTjeFK7M=; h=From:To:Subject:Date:From; b=wWTv1dQJwVWGVDaXCfovKZovqBSrCeRYDFqPe1Qbb/4l3iDI9jqFs2sGqTChdPiph AgHJml/yTVRFuqiNw6NdTJmFoHLDBgQgqaSTAbRk7WEYuSeuSbzAeGN2Ue8a2ZDhQy oI6fdKSjxHY/qw4u1t1Jik4GSo6QwR/d5l0Kyqww= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_4-branch] Cygwin: fix return value of ilogbl(NaN) X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/cygwin-3_4-branch X-Git-Oldrev: 83aceaa5e291418eb15bf2f0b46b5e9d6ccb03ba X-Git-Newrev: f87469dd5bcae461bd9fe4da4ee4958ecf353749 Message-Id: <20230418115429.6C2BD3858D1E@sourceware.org> Date: Tue, 18 Apr 2023 11:54:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Df87469dd5bc= ae461bd9fe4da4ee4958ecf353749 commit f87469dd5bcae461bd9fe4da4ee4958ecf353749 Author: Corinna Vinschen AuthorDate: Tue Apr 18 13:43:06 2023 +0200 Commit: Corinna Vinschen CommitDate: Tue Apr 18 13:43:31 2023 +0200 Cygwin: fix return value of ilogbl(NaN) =20 Fixes: 792e51b72149 ("Add missing long double functions to Cygwin") Reported-by: Bruno Haible Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/math/ilogbl.S | 4 ++++ winsup/cygwin/release/3.4.7 | 3 +++ 2 files changed, 7 insertions(+) diff --git a/winsup/cygwin/math/ilogbl.S b/winsup/cygwin/math/ilogbl.S index a4fe503adcaf..c75a7d0fde9d 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. */ =20 @@ -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. */ =20 diff --git a/winsup/cygwin/release/3.4.7 b/winsup/cygwin/release/3.4.7 index 1186e57f5977..8ecfbc30a24b 100644 --- a/winsup/cygwin/release/3.4.7 +++ b/winsup/cygwin/release/3.4.7 @@ -15,3 +15,6 @@ Bug Fixes =20 - 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