[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Sun Oct 9 14:53:27 CEST 2011


details:   /var/hg/gmp/rev/e68668bdce75
changeset: 14282:e68668bdce75
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Sun Oct 09 14:52:48 2011 +0200
description:
Corrected copyright year.

details:   /var/hg/gmp/rev/5bc1c4a998d5
changeset: 14283:5bc1c4a998d5
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Sun Oct 09 14:53:24 2011 +0200
description:
const-declare matrix argument.

diffstat:

 ChangeLog                 |  5 +++++
 gmp-impl.h                |  2 +-
 mpn/generic/hgcd_matrix.c |  2 +-
 tests/mpn/t-mulmid.c      |  2 +-
 4 files changed, 8 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 6dc7b095171a -r 5bc1c4a998d5 ChangeLog
--- a/ChangeLog	Sat Oct 08 20:15:06 2011 +0200
+++ b/ChangeLog	Sun Oct 09 14:53:24 2011 +0200
@@ -1,3 +1,8 @@
+2011-10-09  Niels Möller  <nisse at lysator.liu.se>
+
+	* mpn/generic/hgcd_matrix.c (mpn_hgcd_matrix_adjust): Declare
+	matrix argument const.
+
 2011-10-08  Niels Möller  <nisse at lysator.liu.se>
 
 	* tests/mpn/t-hgcd_appr.c (hgcd_appr_valid_p): Adjusted the
diff -r 6dc7b095171a -r 5bc1c4a998d5 gmp-impl.h
--- a/gmp-impl.h	Sat Oct 08 20:15:06 2011 +0200
+++ b/gmp-impl.h	Sun Oct 09 14:53:24 2011 +0200
@@ -4001,7 +4001,7 @@
 __GMP_DECLSPEC void mpn_hgcd_matrix_mul __GMP_PROTO ((struct hgcd_matrix *, const struct hgcd_matrix *, mp_ptr));
 
 #define mpn_hgcd_matrix_adjust __MPN (hgcd_matrix_adjust)
-__GMP_DECLSPEC mp_size_t mpn_hgcd_matrix_adjust __GMP_PROTO ((struct hgcd_matrix *, mp_size_t, mp_ptr, mp_ptr, mp_size_t, mp_ptr));
+__GMP_DECLSPEC mp_size_t mpn_hgcd_matrix_adjust __GMP_PROTO ((const struct hgcd_matrix *, mp_size_t, mp_ptr, mp_ptr, mp_size_t, mp_ptr));
 
 #define mpn_hgcd_step __MPN(hgcd_step)
 __GMP_DECLSPEC mp_size_t mpn_hgcd_step __GMP_PROTO ((mp_size_t, mp_ptr, mp_ptr, mp_size_t, struct hgcd_matrix *, mp_ptr));
diff -r 6dc7b095171a -r 5bc1c4a998d5 mpn/generic/hgcd_matrix.c
--- a/mpn/generic/hgcd_matrix.c	Sat Oct 08 20:15:06 2011 +0200
+++ b/mpn/generic/hgcd_matrix.c	Sun Oct 09 14:53:24 2011 +0200
@@ -184,7 +184,7 @@
 /* Multiplies the least significant p limbs of (a;b) by M^-1.
    Temporary space needed: 2 * (p + M->n)*/
 mp_size_t
-mpn_hgcd_matrix_adjust (struct hgcd_matrix *M,
+mpn_hgcd_matrix_adjust (const struct hgcd_matrix *M,
 			mp_size_t n, mp_ptr ap, mp_ptr bp,
 			mp_size_t p, mp_ptr tp)
 {
diff -r 6dc7b095171a -r 5bc1c4a998d5 tests/mpn/t-mulmid.c
--- a/tests/mpn/t-mulmid.c	Sat Oct 08 20:15:06 2011 +0200
+++ b/tests/mpn/t-mulmid.c	Sun Oct 09 14:53:24 2011 +0200
@@ -1,6 +1,6 @@
 /* Test for mulmid function.
 
-Copyright 2009 Free Software Foundation, Inc.
+Copyright 2011 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library.
 


More information about the gmp-commit mailing list