From nobody Fri Jul 15 14:03:39 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 4LktPS10Lcz4WkYv; Fri, 15 Jul 2022 14:03:40 +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 4LktPS0Zvvz3ypm; Fri, 15 Jul 2022 14:03:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657893820; 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=icuPIIAWy19Hody/e0cg70aXQPXN1IbM85yqMfZAaYg=; b=TEhNnyKEobuOjnDTOxjnRUwdg7zgOp54kymjw5hPJm+hrwff3QQkJUVUj9m3C1NJeiL/ri IWM8Qe+ne1Q+JhhziRKZFf3FsvQd49/brbw8dH8DGJqjeLv5MB7gDEWRGBK3Jb5wRBirqj HJ+4ajvJ2fv4zzpyUKm7iBa7oNAK1bgKs3CjcFxaKqEoOtUaEYtv1InL1Hmvg0/Vo+twr9 g1Zce0AtFSJYW1UFvcvl593EC+dRLSZquNN60t4D4uSi+UKUkvzG88O7zWC+CekmYIRtZF BY+WQ0v89BJWLv7+onCy+AdW5EVcDi8I1wU8vb7JDV4mnS1wNCSX/3XFKd9XRg== 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 4LktPR6n6nzlS4; Fri, 15 Jul 2022 14:03:39 +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 26FE3dg7033934; Fri, 15 Jul 2022 14:03:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26FE3diU033933; Fri, 15 Jul 2022 14:03:39 GMT (envelope-from git) Date: Fri, 15 Jul 2022 14:03:39 GMT Message-Id: <202207151403.26FE3diU033933@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: eaf38b5ff9d9 - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: eaf38b5ff9d937e652b49a37adc712ade25b611f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657893820; 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=icuPIIAWy19Hody/e0cg70aXQPXN1IbM85yqMfZAaYg=; b=ZtLtnLUe+wN1lTNGLL1gWkGVVNg2EtEa2CNAWlZPJgLEEPvg7a/vg2T7aTV6PjNxgMcubP BI+f03yYW8nFaDLaSZ9KDH97aV9CHtTdy6ceLmPQcDPeS1+3P9faCj0lNJ+uhAPISlUcku 9DOY2h8Hdz7/7ZzTnlvdHyDevWW/iUE5bXHDgfgmpUMgRXkHL6cT6Lj1D1ogS9Ttbsapeo PVV+9BJoGWqJRKSMfpfPlqUIEBIh9bHhMTS/958cQaxTU9XYEs1LhASbyEj9LN3uNEg0wH DoonqnR3R8W0cQXMUbdyRTqFi7t0O+QQ0++K34dJ+o9AGPYnA+Ucp8EfWC2crg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657893820; a=rsa-sha256; cv=none; b=gunYEptZzSH/orMdvsdBXhKLo1uJIrob+R5arFfBpT8cXNPqdmYPCcyzxo6X1soLs6kskv +wxrcmIl9hPbI/S5uZsL7HtO05udgJSIWb5oify2MiSEPvA28+M8ONzbMvMfbIKgiSJq5M kyvb1ToOGjwWpbeT6EJTaoSwFDxKOwZvUv4bJKSHzw4v+3WXt9YV6C90lNDU5uAEDJNmDW Vbmn8BWltO1/rZLFPK1XP7XmoBn9FPWtcs/0TnApVDW2S5WbgKiLrpdKldu7X6w1NWMIoP 60BHYrVCWJgjz6BaYOqTZZhbv2V02MCq9uEJbxIGBw+SZboMWW0eIOvtSL6AYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=eaf38b5ff9d937e652b49a37adc712ade25b611f commit eaf38b5ff9d937e652b49a37adc712ade25b611f Author: Yi Kong AuthorDate: 2022-07-12 05:17:47 +0000 Commit: Li-Wen Hsu CommitDate: 2022-07-15 14:03:09 +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); }