[Gmp-commit] /home/hgfiles/gmp: Add the "c" parameter to the "_nc" versions o...

mercurial at gmplib.org mercurial at gmplib.org
Sun Dec 20 13:33:31 CET 2009


details:   /home/hgfiles/gmp/rev/aae9d993d23d
changeset: 13141:aae9d993d23d
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Sun Dec 20 13:33:24 2009 +0100
description:
Add the "c" parameter to the "_nc" versions of rsh1{add,sub}

diffstat:

 gmp-impl.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r aa534ff027a4 -r aae9d993d23d gmp-impl.h
--- a/gmp-impl.h	Sun Dec 20 05:03:00 2009 +0100
+++ b/gmp-impl.h	Sun Dec 20 13:33:24 2009 +0100
@@ -846,7 +846,7 @@
 #define mpn_rsh1add_n __MPN(rsh1add_n)
 __GMP_DECLSPEC mp_limb_t mpn_rsh1add_n __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t));
 #define mpn_rsh1add_nc __MPN(rsh1add_nc)
-__GMP_DECLSPEC mp_limb_t mpn_rsh1add_nc __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t));
+__GMP_DECLSPEC mp_limb_t mpn_rsh1add_nc __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t));
 
 /* mpn_rsh1sub_n(c,a,b,n), when it exists, sets {c,n} to ({a,n} - {b,n}) >> 1,
    and returns the bit rshifted out (0 or 1).  If there's a borrow from the
@@ -855,7 +855,7 @@
 #define mpn_rsh1sub_n __MPN(rsh1sub_n)
 __GMP_DECLSPEC mp_limb_t mpn_rsh1sub_n __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t));
 #define mpn_rsh1sub_nc __MPN(rsh1sub_nc)
-__GMP_DECLSPEC mp_limb_t mpn_rsh1sub_nc __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t));
+__GMP_DECLSPEC mp_limb_t mpn_rsh1sub_nc __GMP_PROTO ((mp_ptr, mp_srcptr, mp_srcptr, mp_size_t, mp_limb_t));
 
 #define mpn_lshiftc __MPN(lshiftc)
 __GMP_DECLSPEC mp_limb_t mpn_lshiftc __GMP_PROTO ((mp_ptr, mp_srcptr, mp_size_t, unsigned int));


More information about the gmp-commit mailing list