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