From daec4644fb12b026eb5210827fe66cae3928635a Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 18 Dec 2006 02:34:33 +0000 Subject: 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 --- algebra.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'algebra.cpp') 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 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::SimultaneousExponentiate(T *results, const T &base, const } NAMESPACE_END + +#endif -- cgit v1.2.1