From nobody Tue Oct 14 14:16:36 2025 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cmGVX5yJfz6CW7s for ; Tue, 14 Oct 2025 14:16:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmGVX5Rg9z3XsC for ; Tue, 14 Oct 2025 14:16:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i5CaHmqUZ3L/xLscQHPlI2IJGBUOjzvYQVpxbdguVA0=; b=W1KcYsGdGMErjHcoqM2XELzzCI4zF8cz66mqNXl8dnLB7avdZm0Yw0C43hS71kSYPoAuR/ St03GH+OU5CYA5DFGzSzuRA7Xzw2qcMHEs1lea3QIsBx6nhbAhPQiDtkwgAVM62wnes+wm 5VAAiwBrzGiUBpJG7PSKNvcACppecCCXm4cBf0Wjm4qDXpaWCG0CxwozSuqMR8QiOh671O vAjwzpPUiwmRWFE/0HP2Hq/yv2MjnQnZ/uvPL34HhQ4ksJnKa88eF9veLFhnnbK0YUb2VO Sd3pYmQRxdzQ2NAlZYgBkDmt5LQCh2AckTNq2eUEei/3zHPMMiJZLjjzP0rPqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451396; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=i5CaHmqUZ3L/xLscQHPlI2IJGBUOjzvYQVpxbdguVA0=; b=D078WzU+TTr+QWgyeRKsz+SIukOnW+rxEOQ2NrFjLQrFXrbNFeaffCfTyQIScWUfU9gwpc sSeSp+s3ehOT4AsejyxP1u0YE3oWzJZZ9zdwRg++fHTwkkjoK23qM75QI+d3ccmz/B2n8G qyTXHetLWBMdubugsdTXEhrrTVY2dPHkLN1vJluX8lwr/WtvHNDce8N8iNafI0hPcbaMxo TUqVSJ9o/L9X8w7hFPG3Z4AdqGdxV2QlCnE20vwBdc0YjigD95FlCYB7WKLeFvK4bwfV9g FRD1A92GkeA/+vntFOOPTa7eXHhQGIUqzYKhshDodRcqbCUPQZGrsxHpQhHnVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760451396; a=rsa-sha256; cv=none; b=lQnmzRsXdCCgBgemcKGP3y666dkmKjQNe5YWJFBqzFBB+q2lZpp1+Yza+aI+5qhfKIfj6+ KX05LLnSMqDbEtsXXXQXRocmrL1/GSU07beqpuu/EBCSwCOuA4fYebbdL/tSSxTtudu8Aw zm/vM9MLsMxUOYFBBNQdI+MNux2/SpLDj0+PamZ2TH2YhR8xvMUlzOFzBC7+0DfCRrybLe Ev02sVwJbZY+gav+KNscy9Ss5uv73gwhoSDr1USv1xLsa0uAQgIn8WenyEhA4N6j03v8hg 2reTKPGoNjgIvEQUMsOpKvO4gpplwwi4eFelCIzfqCID+eWD0m+IiUg2eSKkMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cmGVX51mTzwB3 for ; Tue, 14 Oct 2025 14:16:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 59EEGaFF025276 for ; Tue, 14 Oct 2025 14:16:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59EEGa3E025275 for numerics@FreeBSD.org; Tue, 14 Oct 2025 14:16:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 251091] lib msun remainder() gives incorrect result on powerpc64 Date: Tue, 14 Oct 2025 14:16:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vexeduxr@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251091 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd06e31d4a7622b535d903a1b84ce59e21= 1ca2b18 commit d06e31d4a7622b535d903a1b84ce59e211ca2b18 Author: Ahmad Khalifa AuthorDate: 2025-10-10 09:30:52 +0000 Commit: Ahmad Khalifa CommitDate: 2025-10-14 14:01:59 +0000 libm: remainder: make sure x is zero Make sure the entirety of x is zero before flipping the sign bit. Otherwise the sign would be wrong for small values of x when x is negative and |n*y| > |x| Reported by: alfredo PR: 251091 Reviewed by: kargl MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53023 (cherry picked from commit 25cca51ed294890d20a3c0290814cd26875db686) lib/msun/src/e_remainder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Tue Oct 14 14:16:38 2025 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cmGVZ0rnbz6CWMr for ; Tue, 14 Oct 2025 14:16:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmGVY69Grz3Y4v for ; Tue, 14 Oct 2025 14:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CnzfzP3XyCIEhVwMwjHm4lYTLTgWPcBBznK0ByVFc3g=; b=n6V3z8it0LCJSfSO7Ow+gyoApELXJOPjuGbZgrr7XPYAv5FH45b7QKrUdMl4IXLLrd8RGh ppSB3c0LjhirGDW0PkSmm/pIU+zHf7CXhXG0IlkOH0PMgHX1Px/M5tobsGraAh1FQOSGoP rdimm2fk6ovAswIrsNtHJpSg7b1iU3H8FP9FYl+BD6agZMrhBwUEyEQ9pFmW46DGUL0zPA HIyjgMy9zagempNfQZAPRAELsQ0k7qwSIbPwUy2D7jGBi1ACmG7oHHRa9ofLF/LfsUwuG1 AOLyDvGFevPHfwmoCnS5j6lsMxP0snnhftVMSMlNp1NoVoz97BpS8bH4LA6gVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CnzfzP3XyCIEhVwMwjHm4lYTLTgWPcBBznK0ByVFc3g=; b=pMQ9JYwC0hKFKxwGgV1RyOG6dp6ZP10+ejFgsqSSFpSPpv7T+m1SlYKbRAMVMi86T5rNhC IuEZfwZMuo4a61HHKH7q3F+LgLqBekh5aHG+xFAaZ1eUl9wKE47qBoKY1xDH/wq71D7FLr OmWGvfLEnwZfeBvUx3HeiceUYW3JVafhB0gGPMC7or1H0bhc7DWhmMPKdT+BQbZFpBkCBk BSBaGrtdiNMPOvreg+ucixhIn/ErPm+Tj9oAEjzAaO19E/xz/QfDNX3ZFBB2QfGzQji0XI gkZHw0IT6PyEYiM48GTfyuF/RfgesJ7T/cVtyiV0MhT3oHvXGRvjEcbphaDhBQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760451397; a=rsa-sha256; cv=none; b=fE9AOkbDwX5V3U2+Yc6e/ezfgQTIVhbw95lfdVkOI0VkJNklPMZCkdmTuTxWVe6fV9U69k JPNWXZ4P3J1s2+F8tJpxZv+9jtTf3jLMwZ41PuwdN+65+gNXJ6WHvIXbThmrSFtAzWW5j0 oEwBuqS9ifxFzVvvdGTGFy5dCVykG47+wRpl1tMwGPPmqT3UHcja4nlFcx7RR9W5LL5fc+ QO7Qk2GcyIjTajzHiN0Dlbwi62WfIxU5+U+ljzrPr750o2YQ2jsUmihKeoe8I6+glZgodR 8kW+c4nNY+rP4c9R91YlbSW4u0jUAwr4QBpkbL/bZqj82HiF/KCy9RMHbOA7tg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cmGVY5hDszwbS for ; Tue, 14 Oct 2025 14:16:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 59EEGb8R025302 for ; Tue, 14 Oct 2025 14:16:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59EEGbmG025301 for numerics@FreeBSD.org; Tue, 14 Oct 2025 14:16:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 251091] lib msun remainder() gives incorrect result on powerpc64 Date: Tue, 14 Oct 2025 14:16:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vexeduxr@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251091 --- Comment #9 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D583e976d6d09770a6299a19603d4f0dba= a562cac commit 583e976d6d09770a6299a19603d4f0dbaa562cac Author: Ahmad Khalifa AuthorDate: 2025-10-10 09:30:52 +0000 Commit: Ahmad Khalifa CommitDate: 2025-10-14 13:42:31 +0000 libm: remainder: make sure x is zero Make sure the entirety of x is zero before flipping the sign bit. Otherwise the sign would be wrong for small values of x when x is negative and |n*y| > |x| Reported by: alfredo PR: 251091 Reviewed by: kargl MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53023 (cherry picked from commit 25cca51ed294890d20a3c0290814cd26875db686) lib/msun/src/e_remainder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Tue Oct 14 14:16:39 2025 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cmGVb35SDz6CWMv for ; Tue, 14 Oct 2025 14:16:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmGVb2DqYz3Y0b for ; Tue, 14 Oct 2025 14:16:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=03wYPJ4Gl/lw1oj3UXuunsqfDtBGY3jbOsVeT63jByA=; b=KFOOtehJMdp1NyzfwaO9Jqin3sBJeJvlV8PCd2dNArJZMYkBvOoQm14yQFp/nN3na2g2JG UI3g3LU9RRGf1fOiyPLqiUF1XQCe+3clMF4kNRG5bGhUygBaQE4F9Jn0bFmipL3JKS9TiM bhP3F3kQJsowvjdNduvHcS0VodEQt45EXXYTzpUG8g3YXwoc/pGZRKo34foEC/SeR12zjY cj0Ppkh9pe691/jJ6UH2PbgV2FQiLeQB7qEftmoiXzj2hPDarFgVRxNVMVFpQ+Y/8l/iSL uttCiQCvfL8MYA/oDaB+J9wldWlwMMkeh/XgrCwfmeje4kJ4Fakc8kgcYWRL6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=03wYPJ4Gl/lw1oj3UXuunsqfDtBGY3jbOsVeT63jByA=; b=ARoT9y+vLZ1bI8sH+P5JNrxlDkxEl6G2DkHi55LUGX4Br5YKo/JJb9V8hr3G3z4gw5bZaP FXn3+uh1i5co0W6zOV15Pip4ILRGOSyxLGWTgypoxadnPYUaMqHMB+2FyG1qATyVqqXgV7 LV23eHZH9H1nRLrrtrK9S4t3S4jCBykLnreAB0a8WiIIG7KOpJ2yaS2E6gH1waCi21wuQI SfUBORP4oxPjo6wjLPC8A4tEAcadmtZGFkQyxi7BZj1X9RUZhLfmfgp3X1N5xgRXzLNjz9 doGDDirxDAXxAxVmvoSGSwYZN6gXlaIJGbscGLggURzNH/fUOV53wl0kQmT5Rw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760451399; a=rsa-sha256; cv=none; b=jEPjHSX/6Ig6PyS9Sz4YpJuuOOAPO8XOwGZ6C8WchL9BoIes81s7PSVKToHUFPOzNiLFEQ YIZ8rixB/+enK641jRqZOZGevTxNOiffBo2LnMDGvoQHdJNomoBKq5ngCAVGniX1CCHNb6 r2ix/PnC653/eeNtVwax1stZYRRc+b+/wRZT4NC9Vs05meYz5n/8IT+pRvAAiqU3GTTM4F uwpKv9beHcNoRpse6oA3CZ1qZBwnW5efDDVP/MYtYoG/XKwhVtf7PAo6XLyWykibg+NP4h YGHVBXZFy4yZTcAGCaODmqwLIeKdtNEGdjtpBYdwBS62WKzNq0/mTGnopN+FhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cmGVb1gVVzwDx for ; Tue, 14 Oct 2025 14:16:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 59EEGdHO025349 for ; Tue, 14 Oct 2025 14:16:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59EEGdq8025348 for numerics@FreeBSD.org; Tue, 14 Oct 2025 14:16:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 251091] lib msun remainder() gives incorrect result on powerpc64 Date: Tue, 14 Oct 2025 14:16:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vexeduxr@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251091 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D439909c48b0e8b0e8dda03b9a359b73dc= abb546e commit 439909c48b0e8b0e8dda03b9a359b73dcabb546e Author: Ahmad Khalifa AuthorDate: 2025-10-10 09:30:52 +0000 Commit: Ahmad Khalifa CommitDate: 2025-10-14 14:00:19 +0000 libm: remainder: make sure x is zero Make sure the entirety of x is zero before flipping the sign bit. Otherwise the sign would be wrong for small values of x when x is negative and |n*y| > |x| Reported by: alfredo PR: 251091 Reviewed by: kargl MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53023 (cherry picked from commit 25cca51ed294890d20a3c0290814cd26875db686) lib/msun/src/e_remainder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Tue Oct 14 14:19:14 2025 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cmGYZ0yV8z6CWBC for ; Tue, 14 Oct 2025 14:19:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cmGYZ091rz3Y41 for ; Tue, 14 Oct 2025 14:19:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FQovmFNO4qCSIBLJapCrSGxvlQksD+mCEMIcY7rTbyU=; b=dso2uaOX3gLBEDGNILnkpXNjokxgX1D60dmKy6TVCaekF5ZxcDWPYBAKuycRNFsqh5xeo1 9e6EG2y9kwPVW736Mo7+4SbuxVk6pbvsUYyhFwqBSj7W7PU7pLBehijXbhaGtH5Ho6xui5 ZEJuY5WUY+tq2HhASSkM09UOWX3kirkeFxhAZ7zsU51gzOWmSzxQfG4mCDaJ5L4PG6XfpE +O+ku2bZeWqgtslnlETugeAh9vMusTEHv5UxGVElyDqkgqVWwgtGA39hQGtv0iIfOoacA7 Kg2V/JMIAUlsLVjIaIsb1oqFyREwMPn+yrTZ36rU9Qu1IIxSgl0Z9jm0yWT/Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760451554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FQovmFNO4qCSIBLJapCrSGxvlQksD+mCEMIcY7rTbyU=; b=Y4Kws/eB8kd7/TiwVunIZf6aptVLgulSL48iFkBqM1NZRJDaE15vqaJTsP/xxAt507rtl8 bFTSPoCreEBAwoRhlxU5mV19Rg6KK912RaZKEYq/aCGnj3px+7GnDRLnJqai+x1XTJbaov T1kJnP4D2/T3POVyploGv22por4JcuzaWQk4FXcAYsNQ7JUprExbi2ZDgBHRo4BCrAQH8y +xmCilgmOlKjmhvC9DKjTb+E8+GCb86qWhAegEQV/JOoC233BLLVZ1+iN4LyLtIM7S4kvd asyWejtWIeY1pIGYyEvnXpQtQSKNZ9hHeECLWJuhZHx6hSCLJSHTlTYt2OhmQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760451554; a=rsa-sha256; cv=none; b=HdMnV4MshzQIEx2aZUZrgcxt7Gar3x8y5iMJi1bPLQtIKptzKmN3drWcldkA5aRmi9+w0G G/+SWH9YyhDRGsI62on/NkwgQSp3vggZ9txI7NzLG8iIYieb05HgUscYCPRBcfyo3kelg6 R5XDLTnZHP5fmxPHchExb3Qp2wpWPYEfTixM9+h42JVic2mv+YEdSv51eFLBUaX62dlXKI ofvgSoVDGZ3J2UX87CKHB3JGN0DcDOC2a7uuI1SAYu6tg/dj86UyO2Sh+oxMwRCfGCzJFX GimaWqhf8jz+fuNfVJfvXoURdsGUr+PFZq7BNCcfI6TrJ3Ww6QyL3gNmcA1uOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cmGYY6jVkzwF0 for ; Tue, 14 Oct 2025 14:19:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 59EEJD1r026675 for ; Tue, 14 Oct 2025 14:19:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59EEJDZj026674 for numerics@FreeBSD.org; Tue, 14 Oct 2025 14:19:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 251091] lib msun remainder() gives incorrect result on powerpc64 Date: Tue, 14 Oct 2025 14:19:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: vexeduxr@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vexeduxr@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251091 Ahmad Khalifa changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Resolution|--- |FIXED --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Thu Oct 16 17:39:05 2025 X-Original-To: numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cnZvD6B7Dz6Crn3 for ; Thu, 16 Oct 2025 17:39:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cnZvD5bWKz3x1g for ; Thu, 16 Oct 2025 17:39:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760636344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/16nb2RfXB3in0uFE9N0dSE5VQzcK+Ec1qaaXF2LyVU=; b=xBh4c77FdolJW6Uv79e8j+cP2BdJo0dK5SxABTbcghBMcim6Wu8WhJFv+ubVnvNviOEXt/ /uHqcftlF6VkB0hL2V+eaHLFbZe+OYU/h9NOhwYj8CYL057nxd876UsyjHbADvbue43fPn zlcrcvEH8pHisToEKSe9C3k/Wa8cfo0Yt11w5VT3mQpTqz0shEe6UCuddZT6HO+UCPW+eV UjQV2P5jmqg/g7qrkuFpCNS8e9U2/CeHhKqXFlNz+jN6X3nyvm/SfmbNmzavc34tdLIwHG WV4M5MGOkDjurhwZadqF/fyyMMzpPV4expJCb1wxSxpfILltLHEeCEmnv70nBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760636344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/16nb2RfXB3in0uFE9N0dSE5VQzcK+Ec1qaaXF2LyVU=; b=eJ9GFnKu4gikd2AC8EPJGVA/pyYb8/VEnEw+JUqdKstSVsK/vq6cMSMbnOUCSonj5Cxl4W f3jS7T1c6RHNDkgQNk0rWJbBMxddS03OpPwjLyYIuRglFf9v1voABpEU0ufGtAV0wHK+vT vASwnxjFrJUt2/kHq2AJPZpzJfU5Glg/UoQAY41zqPA40Rj+vhRJdwU16M11zx0za+rRTK Hj1AkomYD40orfw2j1mfshlfVTp1J92VuY8LE0OpAv0xkhEvK5tOtwPh0OTbP9cTwiRQZ+ 6mfpQSDjr/HMrB9JIEzArQryzSmjai2TDGTN4CM76tv1exQcsQBmguxnOscgcA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760636344; a=rsa-sha256; cv=none; b=vi+IPmNyYbuQR/WBsRLfl7IARmrZlydc1vuaftw8clIRJe0VhTDMKoy/ShPX1/u5ArDbLn NXlVnLh0kM9yWZ5kAYYnxSRjHI7QqOR67MqT0D4y7n+2PQGbb8bW3X02YlOftm4dPnDzLi 1jEXUg3tsKPw2XfecFtLEiF6GBkwaOZa8LV1FYXSR8J/mmEWNO7IQsVLxpkYBMQ1K4EqnS sot0Jkg3Zvn7IisHwXxRMZwcCoJmxmkqyUw+sPKFKYbtJerR4c09wvj2HH3rfuOJV7jOJ7 upC0BTUAzAAynTzAJkZ4VkKnEIQUG9l0MBsr4qpSXfWEWKuCUsFE0ljbQTP+uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cnZvD5CBrz3Td for ; Thu, 16 Oct 2025 17:39:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 59GHd4CF014223 for ; Thu, 16 Oct 2025 17:39:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59GHd4WY014222 for numerics@FreeBSD.org; Thu, 16 Oct 2025 17:39:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: numerics@FreeBSD.org Subject: [Bug 251091] lib msun remainder() gives incorrect result on powerpc64 Date: Thu, 16 Oct 2025 17:39:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vexeduxr@FreeBSD.org X-Bugzilla-Flags: mfc-stable15? mfc-stable14? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251091 --- Comment #11 from commit-hook@FreeBSD.org --- A commit in branch releng/15.0 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D4c87cff1c8c53f06d8d25813fa32f1cc3= 5657897 commit 4c87cff1c8c53f06d8d25813fa32f1cc35657897 Author: Ahmad Khalifa AuthorDate: 2025-10-10 09:30:52 +0000 Commit: Colin Percival CommitDate: 2025-10-16 17:37:22 +0000 libm: remainder: make sure x is zero Make sure the entirety of x is zero before flipping the sign bit. Otherwise the sign would be wrong for small values of x when x is negative and |n*y| > |x| Approved by: re (cperciva) Reported by: alfredo PR: 251091 Reviewed by: kargl MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D53023 (cherry picked from commit 25cca51ed294890d20a3c0290814cd26875db686) (cherry picked from commit 583e976d6d09770a6299a19603d4f0dbaa562cac) lib/msun/src/e_remainder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=