summaryrefslogtreecommitdiff
path: root/integer.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-08-02 01:11:25 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-08-02 01:11:25 +0000
commit326d87850c602038f5d475ade00854c6ed887073 (patch)
tree29688c561b831ce56afa08d77a6c78343123c5ea /integer.cpp
parentb6b19a9a38dcacf82416c4593eec94c86970644a (diff)
downloadcryptopp-326d87850c602038f5d475ade00854c6ed887073.tar.gz
fix crash in SSE2_Add on P4 when compiled with MSVC 6.0 with Processor Pack
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@378 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'integer.cpp')
-rw-r--r--integer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/integer.cpp b/integer.cpp
index 51da878..d72bf0d 100644
--- a/integer.cpp
+++ b/integer.cpp
@@ -1949,11 +1949,13 @@ static void SetFunctionPointers()
#if CRYPTOPP_INTEGER_SSE2
if (HasSSE2())
{
+#if _MSC_VER != 1200 || defined(NDEBUG)
if (IsP4())
{
s_pAdd = &SSE2_Add;
s_pSub = &SSE2_Sub;
}
+#endif
s_recursionLimit = 32;