summaryrefslogtreecommitdiff
path: root/algebra.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2006-12-18 02:34:33 +0000
committerweidai <weidai11@users.noreply.github.com>2006-12-18 02:34:33 +0000
commit43b41c1042164bc5194f3f61a2ca131ea9014b4a (patch)
tree9732b0bb2e34535743af1bc3680de2ea8d013710 /algebra.cpp
parent54a2acd0aab8ab74ae2c9b88805d259398a1b17e (diff)
downloadcryptopp-git-43b41c1042164bc5194f3f61a2ca131ea9014b4a.tar.gz
update version number, port to Sun C++ 5.8
Diffstat (limited to 'algebra.cpp')
-rw-r--r--algebra.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/algebra.cpp b/algebra.cpp
index 810a32a9..758939e6 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