[Gmp-commit] /var/hg/gmp: More of: Make precomputed arg 'const'.

mercurial at gmplib.org mercurial at gmplib.org
Wed Mar 27 12:26:12 CET 2013


details:   /var/hg/gmp/rev/aece7ae6decf
changeset: 15655:aece7ae6decf
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Mar 27 12:26:08 2013 +0100
description:
More of: Make precomputed arg 'const'.

diffstat:

 gmp-impl.h            |  2 +-
 mpn/generic/mod_1_1.c |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 2b715570f537 -r aece7ae6decf gmp-impl.h
--- a/gmp-impl.h	Wed Mar 27 03:39:03 2013 +0100
+++ b/gmp-impl.h	Wed Mar 27 12:26:08 2013 +0100
@@ -89,7 +89,7 @@
 #define DECL_mod_1(name) \
   __GMP_DECLSPEC mp_limb_t name (mp_srcptr, mp_size_t, mp_limb_t)
 #define DECL_mod_1_1p(name) \
-  __GMP_DECLSPEC mp_limb_t name (mp_srcptr, mp_size_t, mp_limb_t, mp_limb_t [])
+  __GMP_DECLSPEC mp_limb_t name (mp_srcptr, mp_size_t, mp_limb_t, const mp_limb_t [])
 #define DECL_mod_1_1p_cps(name) \
   __GMP_DECLSPEC void name (mp_limb_t cps[], mp_limb_t b)
 #define DECL_mod_1s_2p(name) \
diff -r 2b715570f537 -r aece7ae6decf mpn/generic/mod_1_1.c
--- a/mpn/generic/mod_1_1.c	Wed Mar 27 03:39:03 2013 +0100
+++ b/mpn/generic/mod_1_1.c	Wed Mar 27 12:26:08 2013 +0100
@@ -165,7 +165,7 @@
 }
 
 mp_limb_t
-mpn_mod_1_1p (mp_srcptr ap, mp_size_t n, mp_limb_t b, mp_limb_t bmodb[4])
+mpn_mod_1_1p (mp_srcptr ap, mp_size_t n, mp_limb_t b, const mp_limb_t bmodb[4])
 {
   mp_limb_t rh, rl, bi, ph, pl, r;
   mp_limb_t B1modb, B2modb;


More information about the gmp-commit mailing list