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.=