[Gmp-commit] /var/hg/gmp: More mp_bitcnt_t. Probably still some left.

mercurial at gmplib.org mercurial at gmplib.org
Sun May 8 14:15:04 CEST 2011


details:   /var/hg/gmp/rev/763987d1673f
changeset: 14175:763987d1673f
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sun May 08 14:15:01 2011 +0200
description:
More mp_bitcnt_t. Probably still some left.

diffstat:

 ChangeLog |  1 +
 gmpxx.h   |  8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 577aae7cc64d -r 763987d1673f ChangeLog
--- a/ChangeLog	Sun May 08 14:02:19 2011 +0200
+++ b/ChangeLog	Sun May 08 14:15:01 2011 +0200
@@ -1,6 +1,7 @@
 2011-05-08  Marc Glisse  <marc.glisse at inria.fr>
 
 	* gmpxx.h (get_prec): Return mp_bitcnt_t everywhere.
+	(eval): Take precision argument as mp_bitcnt_t.
 
 2011-05-06  Marc Glisse  <marc.glisse at inria.fr>
 
diff -r 577aae7cc64d -r 763987d1673f gmpxx.h
--- a/gmpxx.h	Sun May 08 14:02:19 2011 +0200
+++ b/gmpxx.h	Sun May 08 14:15:01 2011 +0200
@@ -1929,7 +1929,7 @@
 public:
   __gmp_expr(const val_type &val) : expr(val) { }
   void eval(typename __gmp_resolve_expr<T>::ptr_type p,
-	    unsigned long int = 0) const
+	    mp_bitcnt_t = 0) const
   { Op::eval(p, expr.val.__get_mp()); }
   const val_type & get_val() const { return expr.val; }
   mp_bitcnt_t get_prec() const { return expr.val.get_prec(); }
@@ -1982,7 +1982,7 @@
   __gmp_expr(const val1_type &val1, const val2_type &val2)
     : expr(val1, val2) { }
   void eval(typename __gmp_resolve_expr<T>::ptr_type p,
-	    unsigned long int = 0) const
+	    mp_bitcnt_t = 0) const
   { Op::eval(p, expr.val1.__get_mp(), expr.val2.__get_mp()); }
   const val1_type & get_val1() const { return expr.val1; }
   const val2_type & get_val2() const { return expr.val2; }
@@ -2009,7 +2009,7 @@
   __gmp_expr(const val1_type &val1, const val2_type &val2)
     : expr(val1, val2) { }
   void eval(typename __gmp_resolve_expr<T>::ptr_type p,
-	    unsigned long int = 0) const
+	    mp_bitcnt_t = 0) const
   { Op::eval(p, expr.val1.__get_mp(), expr.val2); }
   const val1_type & get_val1() const { return expr.val1; }
   const val2_type & get_val2() const { return expr.val2; }
@@ -2028,7 +2028,7 @@
   __gmp_expr(const val1_type &val1, const val2_type &val2)
     : expr(val1, val2) { }
   void eval(typename __gmp_resolve_expr<T>::ptr_type p,
-	    unsigned long int = 0) const
+	    mp_bitcnt_t = 0) const
   { Op::eval(p, expr.val1, expr.val2.__get_mp()); }
   const val1_type & get_val1() const { return expr.val1; }
   const val2_type & get_val2() const { return expr.val2; }


More information about the gmp-commit mailing list