aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/numbertheory/reducer.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-05-18 13:28:05 +0000
committerlloyd <[email protected]>2011-05-18 13:28:05 +0000
commit49e6d3fdbd47cf827f6ac2e23ab1061abf3084ea (patch)
treef09570509e37615374346b580db32c97acd07bd5 /src/math/numbertheory/reducer.h
parentdedc258d16e714f8694c9a812277fb56e3874fe1 (diff)
Small cleanup in the Barrett reducer, now doesn't create a temp if
abs(x) < modulus. Also remove unused member variables.
Diffstat (limited to 'src/math/numbertheory/reducer.h')
-rw-r--r--src/math/numbertheory/reducer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/numbertheory/reducer.h b/src/math/numbertheory/reducer.h
index 05c12a440..76712074c 100644
--- a/src/math/numbertheory/reducer.h
+++ b/src/math/numbertheory/reducer.h
@@ -13,7 +13,7 @@
namespace Botan {
/**
-* Modular Reducer
+* Modular Reducer (using Barrett's technique)
*/
class BOTAN_DLL Modular_Reducer
{
@@ -53,7 +53,7 @@ class BOTAN_DLL Modular_Reducer
Modular_Reducer(const BigInt& mod);
private:
BigInt modulus, modulus_2, mu;
- size_t mod_words, mod2_words, mu_words;
+ size_t mod_words;
};
}