diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2014-09-01 07:52:30 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2014-09-01 07:52:30 +0200 |
commit | f38faf4ee3a642ffa6f463c6c686027867261d9d (patch) | |
tree | 1178870ba2cae1d8c754389d886f813bed2d309a | |
parent | 65c41bcb0ccb44dfccb65dc9a67c17a3513b99fe (diff) | |
download | gmp-f38faf4ee3a642ffa6f463c6c686027867261d9d.tar.gz |
mpn/generic/remove.c: Use mp_srcptr for source operands.
-rw-r--r-- | gmp-impl.h | 2 | ||||
-rw-r--r-- | mpn/generic/remove.c | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gmp-impl.h b/gmp-impl.h index 4a8286ec3..6cc47677c 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -2560,7 +2560,7 @@ __GMP_DECLSPEC void __gmp_assert_fail (const char *, int, const char *) ATTRIBUT __GMP_DECLSPEC mp_limb_t mpn_trialdiv (mp_srcptr, mp_size_t, mp_size_t, int *); #define mpn_remove __MPN(remove) -__GMP_DECLSPEC mp_bitcnt_t mpn_remove (mp_ptr, mp_size_t *, mp_ptr, mp_size_t, mp_ptr, mp_size_t, mp_bitcnt_t); +__GMP_DECLSPEC mp_bitcnt_t mpn_remove (mp_ptr, mp_size_t *, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_bitcnt_t); /* ADDC_LIMB sets w=x+y and cout to 0 or 1 for a carry from that addition. */ diff --git a/mpn/generic/remove.c b/mpn/generic/remove.c index ef1a06ea1..0d6607f7f 100644 --- a/mpn/generic/remove.c +++ b/mpn/generic/remove.c @@ -7,7 +7,7 @@ SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT IT WILL CHANGE OR DISAPPEAR IN A FUTURE GMP RELEASE. -Copyright 2009, 2012, 2013 Free Software Foundation, Inc. +Copyright 2009, 2012-2014 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -80,13 +80,14 @@ mpn_bdiv_qr_wrap (mp_ptr qp, mp_ptr rp, mp_bitcnt_t mpn_remove (mp_ptr wp, mp_size_t *wn, - mp_ptr up, mp_size_t un, mp_ptr vp, mp_size_t vn, + mp_srcptr up, mp_size_t un, mp_srcptr vp, mp_size_t vn, mp_bitcnt_t cap) { - mp_ptr pwpsp[LOG]; + mp_srcptr pwpsp[LOG]; mp_size_t pwpsn[LOG]; mp_size_t npowers; - mp_ptr tp, qp, np, pp, qp2; + mp_ptr tp, qp, np, qp2; + mp_srcptr pp; mp_size_t pn, nn, qn, i; mp_bitcnt_t pwr; TMP_DECL; |