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