[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Mon Jan 27 15:02:03 UTC 2014
details: /var/hg/gmp/rev/31608e02e1b1
changeset: 16258:31608e02e1b1
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Mon Jan 27 15:59:43 2014 +0100
description:
mpn_sec_add_1: the 2nd arg is const.
details: /var/hg/gmp/rev/d2aee8bdcea1
changeset: 16259:d2aee8bdcea1
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Mon Jan 27 16:01:41 2014 +0100
description:
ChangeLog
diffstat:
ChangeLog | 3 +++
gmp-h.in | 4 ++--
mpn/generic/sec_aors_1.c | 3 +--
3 files changed, 6 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r e7532d3e6158 -r d2aee8bdcea1 ChangeLog
--- a/ChangeLog Mon Jan 27 07:53:17 2014 +0100
+++ b/ChangeLog Mon Jan 27 16:01:41 2014 +0100
@@ -2,6 +2,9 @@
* tests/mpn/t-aors_1.c: Check sec_aors_1 red zones (not smart).
+ * mpn/generic/sec_aors_1.c: Mark the 2nd argument as const.
+ * gmp-h.in (mpn_sec_add_1, mpn_sec_sub_1): Likewise.
+
2014-01-24 Torbjorn Granlund <tege at gmplib.org>
* mpn/x86_64/fat/fat.c (fake_cpuid_table): Use proper steamroller and
diff -r e7532d3e6158 -r d2aee8bdcea1 gmp-h.in
--- a/gmp-h.in Mon Jan 27 07:53:17 2014 +0100
+++ b/gmp-h.in Mon Jan 27 16:01:41 2014 +0100
@@ -1628,12 +1628,12 @@
__GMP_DECLSPEC mp_limb_t mpn_cnd_sub_n (mp_limb_t, mp_ptr, mp_srcptr, mp_srcptr, mp_size_t);
#define mpn_sec_add_1 __MPN(sec_add_1)
-__GMP_DECLSPEC mp_limb_t mpn_sec_add_1 (mp_limb_t *, mp_limb_t *, mp_size_t, mp_limb_t, mp_ptr);
+__GMP_DECLSPEC mp_limb_t mpn_sec_add_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr);
#define mpn_sec_add_1_itch __MPN(sec_add_1_itch)
__GMP_DECLSPEC mp_size_t mpn_sec_add_1_itch (mp_size_t) __GMP_ATTRIBUTE_PURE;
#define mpn_sec_sub_1 __MPN(sec_sub_1)
-__GMP_DECLSPEC mp_limb_t mpn_sec_sub_1 (mp_limb_t *, mp_limb_t *, mp_size_t, mp_limb_t, mp_ptr);
+__GMP_DECLSPEC mp_limb_t mpn_sec_sub_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t, mp_ptr);
#define mpn_sec_sub_1_itch __MPN(sec_sub_1_itch)
__GMP_DECLSPEC mp_size_t mpn_sec_sub_1_itch (mp_size_t) __GMP_ATTRIBUTE_PURE;
diff -r e7532d3e6158 -r d2aee8bdcea1 mpn/generic/sec_aors_1.c
--- a/mpn/generic/sec_aors_1.c Mon Jan 27 07:53:17 2014 +0100
+++ b/mpn/generic/sec_aors_1.c Mon Jan 27 16:01:41 2014 +0100
@@ -41,8 +41,7 @@
}
mp_limb_t
-FNAME (mp_limb_t *rp, mp_limb_t *ap, mp_size_t n, mp_limb_t b,
- mp_ptr scratch)
+FNAME (mp_ptr rp, mp_srcptr ap, mp_size_t n, mp_limb_t b, mp_ptr scratch)
{
scratch[0] = b;
MPN_ZERO (scratch + 1, n-1);
More information about the gmp-commit
mailing list