From dbf12b654a6f98408e108f6d361db03f61189a51 Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 May 2007 19:19:01 +0000 Subject: [PATCH] fix g_cacheLineSize for Pentium 3 --- cpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu.cpp b/cpu.cpp index c42dd8bc..4d8577e1 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; }