summaryrefslogtreecommitdiff
path: root/cpu.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 19:19:01 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 19:19:01 +0000
commit2cf52d3fcbabd3caf3b4170da28f73b74bc469b0 (patch)
treed0ed91b4ea30b6f7e2e27da2fbde1aabc7078a62 /cpu.cpp
parent8d3e02430d3aba85ed61c773e8e7fba24abfa9c7 (diff)
downloadcryptopp-2cf52d3fcbabd3caf3b4170da28f73b74bc469b0.tar.gz
fix g_cacheLineSize for Pentium 3
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@346 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'cpu.cpp')
-rwxr-xr-xcpu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu.cpp b/cpu.cpp
index c42dd8b..4d8577e 100755
--- a/cpu.cpp
+++ b/cpu.cpp
@@ -173,6 +173,9 @@ void DetectX86Features()
g_cacheLineSize = GETBYTE(cpuid[2], 0);
}
+ if (!g_cacheLineSize)
+ g_cacheLineSize = CRYPTOPP_L1_CACHE_LINE_SIZE;
+
g_x86DetectionDone = true;
}