diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-12-18 02:34:33 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-12-18 02:34:33 +0000 |
commit | daec4644fb12b026eb5210827fe66cae3928635a (patch) | |
tree | 9732b0bb2e34535743af1bc3680de2ea8d013710 /algebra.cpp | |
parent | ecf8b8bd23401e833a901eb10ba06d0ab9482f88 (diff) | |
download | cryptopp-daec4644fb12b026eb5210827fe66cae3928635a.tar.gz |
update version number, port to Sun C++ 5.8
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@265 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'algebra.cpp')
-rw-r--r-- | algebra.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/algebra.cpp b/algebra.cpp index 810a32a..758939e 100644 --- a/algebra.cpp +++ b/algebra.cpp @@ -1,6 +1,10 @@ // algebra.cpp - written and placed in the public domain by Wei Dai #include "pch.h" + +// prevent Sun's CC compiler from including this file automatically +#if !defined(__SUNPRO_CC) || defined(CRYPTOPP_MANUALLY_INSTANTIATE_TEMPLATES) + #include "algebra.h" #include "integer.h" @@ -201,8 +205,8 @@ template <class Element, class Iterator> Element GeneralCascadeMultiplication(co struct WindowSlider { - WindowSlider(const Integer &exp, bool fastNegate, unsigned int windowSizeIn=0) - : exp(exp), windowModulus(Integer::One()), windowSize(windowSizeIn), windowBegin(0), fastNegate(fastNegate), firstTime(true), finished(false) + WindowSlider(const Integer &expIn, bool fastNegate, unsigned int windowSizeIn=0) + : exp(expIn), windowModulus(Integer::One()), windowSize(windowSizeIn), windowBegin(0), fastNegate(fastNegate), firstTime(true), finished(false) { if (windowSize == 0) { @@ -332,3 +336,5 @@ void AbstractRing<T>::SimultaneousExponentiate(T *results, const T &base, const } NAMESPACE_END + +#endif |