Use a better cpu detection

We now follow precisely the Intel documentation.
This commit is contained in:
Andrea Mazzoleni 2015-03-09 22:28:51 +01:00
parent 763dccaaed
commit 1c3000ae04
3 changed files with 114 additions and 63 deletions

View file

@ -419,7 +419,7 @@ void crc32c_init(void)
{
crc32c = crc32c_gen;
#if HAVE_SSE42
if (raid_cpu_has_sse42()) {
if (raid_cpu_has_crc32()) {
crc_x86 = 1;
crc32c = crc32c_x86;
}