From nobody Fri Jul 15 14:03:32 2022 X-Original-To: dev-commits-src-branches@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 4LktPJ2dmRz4WkWJ; Fri, 15 Jul 2022 14:03:32 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LktPJ28wbz3yQ6; Fri, 15 Jul 2022 14:03:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657893812; 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=Q3NOZg7qmKm05U2ZSK45MlWmmjygHvdHh9WdShIj4Pk=; b=W/ffBE/0sCRSEXg4ao5rgj1RZAxI6fli+vPZM76ztwCcpLQXtBTSz+FEAo0jm+5TcNEeE4 17uZ46gIfkjW2xo2JB3yq3bfWq9nyqQ20PhDNEf5KT1h09hkDe50AyMw2ikrlsznKtS1jw 3vSckX7JFb/0Drr5Tv+2KpdavT5uS9KkG61ZhiGgavieKfnp88BvP2yNrq/8br492GmbW7 aFA/j/3wqQzdvFTWBIrQha8aPgvQ5pW1Pn+jT75cTafbny1hXl9Of9jYPD7fAnPtu79YOb +WuQ0niwINcwYdJ8t6yM6QQYrDtfQ2qyRloK7WATFWAaxj7BTAHLe2ffrIFnEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4LktPJ1BN0zlDH; Fri, 15 Jul 2022 14:03:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26FE3W2b033810; Fri, 15 Jul 2022 14:03:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26FE3W20033809; Fri, 15 Jul 2022 14:03:32 GMT (envelope-from git) Date: Fri, 15 Jul 2022 14:03:32 GMT Message-Id: <202207151403.26FE3W20033809@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Li-Wen Hsu Subject: git: 7f753c0c3377 - stable/13 - msun: Rewrite function definitions with identifier lists List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7f753c0c33772dd695a39576356e3a407c4d9ad3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657893812; 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=Q3NOZg7qmKm05U2ZSK45MlWmmjygHvdHh9WdShIj4Pk=; b=Bt3S37qcLaX9Sviv6+FiCytAi1/OI+E82ERY+HiAf/Htdx0/B+w8k4OMmUjw/HTbBpbKrp fpQrPI5haV4EX8HjygAa8glWyz8QDZEuelqhxcnIxqXIPBBl20Uo/3U5KdVf8dbWLZB8W3 OgS36LGqkZIYWdTj59r4tCRuf0Yea7DTKfPtpmnuhBwC8njiC2RQ7FdcTnW8rAMSOZgDnq WfVG6bjzzi3jGGyCOeEXAcGUWZpyzYst9dceHWZRvWU1PvmyuqBSsUi0JJMOLA9cTXIU3k Z8lYH4w0U5/+MpAyfecWruNRgEmFwoe8cxJLc7i3e5ZpKLiNORNJeH/20q8aHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657893812; a=rsa-sha256; cv=none; b=QOCposp23EeD8iHi3x6B9rLN0cS7CandF6ZIxUKJG37PdgYL9vMG2tBlOIwXdvP9b99R1r mHKSrsIddc9SXDnFAkJKjGoQakKnjJAWz8SJy2fpdcaV2XW536J7a/XgxcMBqZpa33DrMP hF2E6kZSTHR7BtAh0ROFItAcdoC6l7TnTOsjukqZ3bYNM0tjln43L28EVSKbCROOb8Vyvf aR/FRMZaKd91p9TkB870vbSfve+wuDIjFXyXqCgDcvhNj0vWgnxdRk0HPYFVhTGvN/oIdW o2caSS6pAd+DAYMq5oe1m5O4zc/3gF7ndsiUJ1mkREEQ/e1eptTObtBxLUaXGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=7f753c0c33772dd695a39576356e3a407c4d9ad3 commit 7f753c0c33772dd695a39576356e3a407c4d9ad3 Author: Yi Kong AuthorDate: 2022-07-12 05:17:47 +0000 Commit: Li-Wen Hsu CommitDate: 2022-07-15 14:02:57 +0000 msun: Rewrite function definitions with identifier lists This syntax is removed in C2x proposal N2432. Reviewed by: pfg MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D35771 (cherry picked from commit 7e06f4708cbe8a8ace21d6629cb4b9c8c9340152) --- lib/msun/src/w_cabsf.c | 3 +-- lib/msun/src/w_drem.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/msun/src/w_cabsf.c b/lib/msun/src/w_cabsf.c index e7bfe220a9a5..b5065c8a5683 100644 --- a/lib/msun/src/w_cabsf.c +++ b/lib/msun/src/w_cabsf.c @@ -15,8 +15,7 @@ static const char rcsid[] = #include "math_private.h" float -cabsf(z) - float complex z; +cabsf(float complex z) { return hypotf(crealf(z), cimagf(z)); diff --git a/lib/msun/src/w_drem.c b/lib/msun/src/w_drem.c index 0f6840934fef..74008a5c8099 100644 --- a/lib/msun/src/w_drem.c +++ b/lib/msun/src/w_drem.c @@ -8,8 +8,7 @@ #include double -drem(x, y) - double x, y; +drem(double x, double y) { return remainder(x, y); }