From nobody Sat Oct 11 10:17: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 4ckKLB2sNbz6Bbn5 for ; Sat, 11 Oct 2025 10:17: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 4ckKLB2Hd2z3YyS for ; Sat, 11 Oct 2025 10:17:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760177858; 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=0mMTiqT4dXwb+/ChM7lxpub5zqH8APjQXF4eGPt7PRM=; b=mA11aVQj17/TDVAagOd8iQZcxJbcTUmrIMdzFU/idDhQageCRBoDm+JyRFuHW//1KcJLHI lHWu4ZM/nv+qlPOBw/+DmV5DR6SmqgIkne4wng9SRAobjTCndDmxpK1knoqT6a0lGRPfin T40vVhZbe0c19CUWzoGAYXvZJmklOHmoXGYlg7Tjc4RKtmjkOEEAYTAh4zWIJyoTh/GDzA aZoswtig9rSWHs8+e4FzWPgKoMlbWtP2j8cljwt971EKvcwxpLBorraBDc0KSbUqnyOEsw zjrVrcNP521erQMITcwKUJHhLDGVf2fzch+kggKbRU27vqeNIq6Nhysrg/Ix1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760177858; 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=0mMTiqT4dXwb+/ChM7lxpub5zqH8APjQXF4eGPt7PRM=; b=G93DLVNBU8t5mT6lTErwlpu6D3bGXZPUcEltZtBfyByeI0BkFr3S2qThGkFRJxlRjOTSZK qDvdBjWgxagO1QaXf+TZDic+eFws/OILVJiXLwyFxqe3EjOvLbIZw8S9hGKNF4qStMLdaK wmwv3RiNMf9Nggyz1Cp8I0b4v8o9iQNN4li20GRFmtlqqD3bRNdQW3SREnnDSi/sf0nRBe y0Br4n0K484vIYfJN3aHGBwZkSe702xxqcXkLYKHwWJA8NChS6XDycokkFDvQzyX2GepDE HoKOQwVIgnU5G05o36tBCcp+X2Ho1/jbnZCoj/agAweW+O8e2/+N4RuwYf1KZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760177858; a=rsa-sha256; cv=none; b=KtoDSXyhLM+SzjtSSke2+R0fN0dhjN5jRIGRLJ/fFez+KL1IPbLu8tvGi40yq7w7t9fvQD J9Sl6P9etJy+y7bnwW35V5L6RizFB4LEGQzjhNNbMsCxfng0D4mXg6aNCZVVdN44i+f/tJ 0gZctsRFxw3uR57ThGhy7VkiDUO59JtERP1xHEpZbQp0x/CIXCVRwzvaaeQ+xrPXn7ihy5 GtH221BoPKPGjGF4TDL7yVNaTCXnkp+EPhE8KX/blh3zqkoEd4DFrCp08pCmvGcEBN0APS O9a/BGHwp8wJP9jS/gg+Fy4tpuYv2lkF4sxW+7OVBKfIlzno6yZe4QowrGTZEQ== 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 4ckKLB1qZXzTdB for ; Sat, 11 Oct 2025 10:17:38 +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 59BAHclp044658 for ; Sat, 11 Oct 2025 10:17:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 59BAHcgc044657 for numerics@FreeBSD.org; Sat, 11 Oct 2025 10:17:38 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: Sat, 11 Oct 2025 10:17: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: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vexeduxr@FreeBSD.org X-Bugzilla-Flags: 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 #7 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D25cca51ed294890d20a3c0290814cd268= 75db686 commit 25cca51ed294890d20a3c0290814cd26875db686 Author: Ahmad Khalifa AuthorDate: 2025-10-10 09:30:52 +0000 Commit: Ahmad Khalifa CommitDate: 2025-10-11 10:13: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 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.=