git: 7e06f4708cbe - main - msun: Rewrite function definitions with identifier lists
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Jul 2022 05:20:03 UTC
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=7e06f4708cbe8a8ace21d6629cb4b9c8c9340152 commit 7e06f4708cbe8a8ace21d6629cb4b9c8c9340152 Author: Yi Kong <yikong@google.com> AuthorDate: 2022-07-12 05:17:47 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2022-07-12 05:17:47 +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 --- 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 <math.h> double -drem(x, y) - double x, y; +drem(double x, double y) { return remainder(x, y); }