[SCM] polybori: Polynomials over Boolean Rings branch, upstream-hg, updated. b4a5cffaa908c53e1d958a42110f8c4dad853aa3

Alexander Dreyer adreyer at gmx.de
Fri Mar 23 08:01:38 UTC 2012


The following commit has been merged in the upstream-hg branch:
commit 2c37b5b9fbc2ab4e2965422fdd4deac524bd2553
Author: Alexander Dreyer <adreyer at gmx.de>
Date:   Tue Feb 28 11:58:56 2012 +0100

    CHA: using static function here

diff --git a/groebner/include/polybori/groebner/Long64From32BitsPair.h b/groebner/include/polybori/groebner/Long64From32BitsPair.h
index 603e0cb..a9cd30f 100644
--- a/groebner/include/polybori/groebner/Long64From32BitsPair.h
+++ b/groebner/include/polybori/groebner/Long64From32BitsPair.h
@@ -37,7 +37,7 @@ template <DelayedLongLong::long_type High,
           DelayedLongLong::long_type Low>
 class Long64From32BitsPairBase<High, Low, 4> {
 public:
-  LongLongConstant<High, Low> operator()() const { 
+  static LongLongConstant<High, Low> get() { 
     return LongLongConstant<High, Low>();
   }
 };
@@ -48,7 +48,7 @@ template <DelayedLongLong::long_type High,
 class Long64From32BitsPairBase<High, Low, 8> {
 public:
   typedef typename DelayedLongLong::long_type long_type;
-  long_type operator()() const { return (High << sizeof(long_type)*4) + Low; }
+  static long_type get() { return (High << sizeof(long_type)*4) + Low; }
 };
 
 /** @class Long64From32BitsPair
diff --git a/groebner/include/polybori/groebner/linear_algebra_step.h b/groebner/include/polybori/groebner/linear_algebra_step.h
index bd72f3c..c280b3c 100644
--- a/groebner/include/polybori/groebner/linear_algebra_step.h
+++ b/groebner/include/polybori/groebner/linear_algebra_step.h
@@ -268,7 +268,7 @@ linalg_step_modified(std::vector < Polynomial > &polys, MonomialSet terms, Monom
 
     /// This checks cols*rows > 20000000000 = 4*2^32 + 2820130816
     if (PBORI_UNLIKELY( (DelayedLongProduct(unmodified_cols, unmodified_rows) >
-			 Long64From32BitsPair<4u, 2820130816u>()()) )){
+			 Long64From32BitsPair<4u, 2820130816u>::get()) )){
       PBoRiError error(CTypes::matrix_size_exceeded);
       throw error;
     }

-- 
polybori: Polynomials over Boolean Rings



More information about the debian-science-commits mailing list