From nobody Mon Apr 6 17:00:25 2026 X-Original-To: dev-commits-src-all@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 4fqFvM06KSz6YLfL for ; Mon, 06 Apr 2026 17:00:31 +0000 (UTC) (envelope-from git@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" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqFvL6bzSz46jC for ; Mon, 06 Apr 2026 17:00:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775494830; 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; bh=YOvYs2VBG7i57nHT/Ra0M2p2lrOCTpSCg+AOWXNO3hY=; b=PHCOEtk3av3CX4jD0tuhHcRfAwv8HWdeltjOSzMZihlnUUe9jSWBALBfqoosdFfbR6/fq3 Sd7nA6VEhnThdtReDQefBe2htonunxH3NPD25cSzlDWYg1uoJ/ZxWCjZaXDUBGk0nyhKzW ADIKTq3s8iC55nUgT0t0et9xavh5SzFnFyI2GXZJZ/pqCDmXdK17E2SD739dTbjYc3e65H oZZyMmQnpQQ6MpjzBA9d3YE2ciLa2Wg8hxvV84qbsn0zn2o718Q3x+xVeND1rKiBiQOaei NNiahLmRoBLJfZMUmeXehyPpPN8RuGPc9uWVAIH1WAYo6nUhtJ0+kcHbiLWKug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775494830; a=rsa-sha256; cv=none; b=IhfNjwDCdhAZCuITHS6MOLl2AiYGr5XTRDCDyZBTJMx5NXL+4xsCrjtbk5CgqAf1szccvj jnbUWsYHf5H5dareMEXf1LzsQzdzRBpiCduRgoZgo/v9+PESRMiaBaEv7OxbmC8vPfQ56e gydZqk4RcTomTo9dLvoq2iPHLWEOB7e4xIreiR2Kgxpd6fUrcVWB1LM00OgCgDI6ueEofJ XRwGxHVw8N2n29FuEFI4ktpKAnNe4f5DaMlqYNPUfxCKK4mpbY3yydGSVc/F07O3vbaT30 8nnKVzVGIhtSTlbE1a7kpSojH/oMISDVONS/thR2LfYFKoHgFWynrM14R/bWug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775494830; 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; bh=YOvYs2VBG7i57nHT/Ra0M2p2lrOCTpSCg+AOWXNO3hY=; b=uocRKDRkPn7QmOsbA5KJG9mD4t35sew1gQmUwdso6jjr4yPbEnCcOXtvZcaE7zZRIVGWbh q8f/fTKDu6m4YLLuLJnARJAhpzR3zTcodwE1v9VLIdicUL8jDHMxDTqXSAouJHYyzSQWaM uaC48uzZyK//sbEIbGXIlR0DsxKjIDPz2ziepN1Bdk4oyo9FvvWgzUU1BbNKg/koj7ZbrV k7Zdt+tIz4zoq+juLoJCZMgLZv4UGxQcbp+b0rVnPC8emgsGtHQDTPF91nbfqTTqP1mCh0 kHfbjzuwxV3UXvOIiwez+wiahR7rJ869p8iFP4KGCqCcJ2raCMjeNHu0P8Bq8g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fqFvL69V4z12Hp for ; Mon, 06 Apr 2026 17:00:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1cf0c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 06 Apr 2026 17:00:25 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 7764e9ca28a9 - main - fmax.3: Add caveat for going beyond C std requirements List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7764e9ca28a9702aed4ba7391e055ec2fcf35c41 Auto-Submitted: auto-generated Date: Mon, 06 Apr 2026 17:00:25 +0000 Message-Id: <69d3e6a9.1cf0c.4efc1da3@gitrepo.freebsd.org> The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=7764e9ca28a9702aed4ba7391e055ec2fcf35c41 commit 7764e9ca28a9702aed4ba7391e055ec2fcf35c41 Author: Ed Maste AuthorDate: 2026-04-02 21:59:42 +0000 Commit: Ed Maste CommitDate: 2026-04-06 17:00:15 +0000 fmax.3: Add caveat for going beyond C std requirements libm's fmax and fmin family of functions treat +0.0 as greater than -0.0. This is not required by the C standard, so the user may not see this behaviour due to compiler optimization. PR: 294214 Reviewed by: fuz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D56230 --- lib/msun/man/fmax.3 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/msun/man/fmax.3 b/lib/msun/man/fmax.3 index 25fc9b6d518a..873a19375ce5 100644 --- a/lib/msun/man/fmax.3 +++ b/lib/msun/man/fmax.3 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 29, 2004 +.Dd April 6, 2026 .Dt FMAX 3 .Os .Sh NAME @@ -68,10 +68,6 @@ functions return the smaller of .Fa x and .Fa y . -They treat -.Li +0.0 -as being larger than -.Li -0.0 . If one argument is an \*(Na, then the other argument is returned. If both arguments are \*(Nas, then the result is an \*(Na. These routines do not raise any floating-point exceptions. @@ -90,6 +86,13 @@ and .Fn fminl functions conform to .St -isoC-99 . +.Sh CAVEATS +The library implementations of these functions treat +.Li +0.0 +as being larger than +.Li -0.0 . +This behavior is not specified by the C standard, is not portable, +and may not occur in light of compiler optimizations. .Sh HISTORY These routines first appeared in .Fx 5.3 .