diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-04 19:19:01 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-05-04 19:19:01 +0000 |
commit | 2cf52d3fcbabd3caf3b4170da28f73b74bc469b0 (patch) | |
tree | d0ed91b4ea30b6f7e2e27da2fbde1aabc7078a62 /cpu.cpp | |
parent | 8d3e02430d3aba85ed61c773e8e7fba24abfa9c7 (diff) | |
download | cryptopp-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-x | cpu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |