fix g_cacheLineSize for Pentium 3

import/raw
weidai 2007-05-04 19:19:01 +00:00
parent 75ec0a02c3
commit dd9bb7d4db
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ void DetectX86Features()
g_cacheLineSize = GETBYTE(cpuid[2], 0); g_cacheLineSize = GETBYTE(cpuid[2], 0);
} }
if (!g_cacheLineSize)
g_cacheLineSize = CRYPTOPP_L1_CACHE_LINE_SIZE;
g_x86DetectionDone = true; g_x86DetectionDone = true;
} }