[Gmp-commit] /var/hg/gmp: Modernize K&R declaration
mercurial at gmplib.org
mercurial at gmplib.org
Sun Sep 6 19:15:05 CEST 2026
details: /var/hg/gmp/rev/1a37f078e9a3
changeset: 18588:1a37f078e9a3
user: Marc Glisse <marc.glisse at inria.fr>
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 <french.cryptonad at gmail.com>
+
+ * acinclude.m4 (mpn_lshift_com): Modernize K&R declaration.
+
2026-08-17 Marco Bodrato <bodrato at anjara.org>
* 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 <stdlib.h>
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;
More information about the gmp-commit
mailing list