[Gmp-commit] /var/hg/gmp: 3 places were missed in the introduction of mp_bitc...

mercurial at gmplib.org mercurial at gmplib.org
Sat Apr 30 09:59:40 CEST 2011


details:   /var/hg/gmp/rev/192c5c616528
changeset: 14146:192c5c616528
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sat Apr 30 09:59:35 2011 +0200
description:
3 places were missed in the introduction of mp_bitcnt_t

diffstat:

 ChangeLog |  7 +++++++
 gmp-h.in  |  6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 4e3d4510292c -r 192c5c616528 ChangeLog
--- a/ChangeLog	Thu Apr 28 21:22:04 2011 +0200
+++ b/ChangeLog	Sat Apr 30 09:59:35 2011 +0200
@@ -1,3 +1,10 @@
+2011-04-30  Marc Glisse  <marc.glisse at inria.fr>
+
+	* gmp-h.in (mpz_cdiv_q_2exp): Use mp_bitcnt_t to match the definition
+	and the documentation.
+	(mpz_remove): Likewise.
+	(mpf_eq): Likewise.
+
 2011-04-28  Torbjorn Granlund  <tege at gmplib.org>
 
 	* configure.in (x86_64): Support bobcat specifically.
diff -r 4e3d4510292c -r 192c5c616528 gmp-h.in
--- a/gmp-h.in	Thu Apr 28 21:22:04 2011 +0200
+++ b/gmp-h.in	Sat Apr 30 09:59:35 2011 +0200
@@ -720,7 +720,7 @@
 __GMP_DECLSPEC void mpz_cdiv_q __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr));
 
 #define mpz_cdiv_q_2exp __gmpz_cdiv_q_2exp
-__GMP_DECLSPEC void mpz_cdiv_q_2exp __GMP_PROTO ((mpz_ptr, mpz_srcptr, unsigned long));
+__GMP_DECLSPEC void mpz_cdiv_q_2exp __GMP_PROTO ((mpz_ptr, mpz_srcptr, mp_bitcnt_t));
 
 #define mpz_cdiv_q_ui __gmpz_cdiv_q_ui
 __GMP_DECLSPEC unsigned long int mpz_cdiv_q_ui __GMP_PROTO ((mpz_ptr, mpz_srcptr, unsigned long int));
@@ -1053,7 +1053,7 @@
 __GMP_DECLSPEC void mpz_realloc2 __GMP_PROTO ((mpz_ptr, mp_bitcnt_t));
 
 #define mpz_remove __gmpz_remove
-__GMP_DECLSPEC unsigned long int mpz_remove __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr));
+__GMP_DECLSPEC mp_bitcnt_t mpz_remove __GMP_PROTO ((mpz_ptr, mpz_srcptr, mpz_srcptr));
 
 #define mpz_root __gmpz_root
 __GMP_DECLSPEC int mpz_root __GMP_PROTO ((mpz_ptr, mpz_srcptr, unsigned long int));
@@ -1329,7 +1329,7 @@
 __GMP_DECLSPEC void mpf_dump __GMP_PROTO ((mpf_srcptr));
 
 #define mpf_eq __gmpf_eq
-__GMP_DECLSPEC int mpf_eq __GMP_PROTO ((mpf_srcptr, mpf_srcptr, unsigned long int)) __GMP_ATTRIBUTE_PURE;
+__GMP_DECLSPEC int mpf_eq __GMP_PROTO ((mpf_srcptr, mpf_srcptr, mp_bitcnt_t)) __GMP_ATTRIBUTE_PURE;
 
 #define mpf_fits_sint_p __gmpf_fits_sint_p
 __GMP_DECLSPEC int mpf_fits_sint_p __GMP_PROTO ((mpf_srcptr)) __GMP_NOTHROW __GMP_ATTRIBUTE_PURE;


More information about the gmp-commit mailing list