fix g_cacheLineSize for Pentium 3

pull/2/head
weidai 2007-05-04 19:19:01 +00:00
parent 74ff1a8e54
commit dbf12b654a
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}