From mercurial at gmplib.org Sun Sep 6 19:15:05 2026 From: mercurial at gmplib.org (mercurial at gmplib.org) Date: Sun, 06 Sep 2026 19:15:05 +0200 Subject: [Gmp-commit] /var/hg/gmp: Modernize K&R declaration Message-ID: details: /var/hg/gmp/rev/1a37f078e9a3 changeset: 18588:1a37f078e9a3 user: Marc Glisse date: Sun Sep 06 19:15:00 2026 +0200 description: Modernize K&R declaration diffstat: ChangeLog | 4 ++++ acinclude.m4 | 12 ++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diffs (40 lines): diff -r ab4a7408e2ce -r 1a37f078e9a3 ChangeLog --- a/ChangeLog Mon Aug 31 20:21:46 2026 +0200 +++ b/ChangeLog Sun Sep 06 19:15:00 2026 +0200 @@ -1,3 +1,7 @@ +2026-09-06 Nad Ka + + * acinclude.m4 (mpn_lshift_com): Modernize K&R declaration. + 2026-08-17 Marco Bodrato * mpz/millerrabin.c: Special (simple) test for Proth numbers. diff -r ab4a7408e2ce -r 1a37f078e9a3 acinclude.m4 --- a/acinclude.m4 Mon Aug 31 20:21:46 2026 +0200 +++ b/acinclude.m4 Sun Sep 06 19:15:00 2026 +0200 @@ -643,11 +643,7 @@ #if ! defined (__cplusplus) unsigned long -lshift_com (rp, up, n, cnt) - unsigned long *rp; - unsigned long *up; - long n; - unsigned cnt; +lshift_com (unsigned long *rp, unsigned long *up, long n, unsigned cnt) { unsigned long retval, high_limb, low_limb; unsigned tnc; @@ -694,11 +690,7 @@ #if ! defined (__cplusplus) #include void -lshift_com (rp, up, n, cnt) - unsigned long *rp; - unsigned long *up; - long n; - unsigned cnt; +lshift_com (unsigned long *rp, unsigned long *up, long n, unsigned cnt) { unsigned long high_limb, low_limb; unsigned tnc;