mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
crc32:Adjust hardware folding algorithm flags
Hardware folding algorithm depend on CRC32 and PMULL instruction. And it should match both flags . Change-Id: I361068402db1fe6d7c0bd8d2c7048f1d94880233 Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
0033f42189
commit
9bcd6768fd
@ -73,9 +73,9 @@ DEFINE_INTERFACE_DISPATCHER(crc32_iscsi)
|
||||
case MICRO_ARCH_ID(ARM, NEOVERSE_N1):
|
||||
return PROVIDER_INFO(crc32c_mix_neoverse_n1);
|
||||
}
|
||||
}
|
||||
if (auxval & HWCAP_CRC32)
|
||||
return PROVIDER_INFO(crc32_iscsi_refl_hw_fold);
|
||||
}
|
||||
|
||||
if (auxval & HWCAP_PMULL) {
|
||||
return PROVIDER_INFO(crc32_iscsi_refl_pmull);
|
||||
}
|
||||
@ -98,9 +98,9 @@ DEFINE_INTERFACE_DISPATCHER(crc32_gzip_refl)
|
||||
case MICRO_ARCH_ID(ARM, NEOVERSE_N1):
|
||||
return PROVIDER_INFO(crc32_mix_neoverse_n1);
|
||||
}
|
||||
}
|
||||
if (auxval & HWCAP_CRC32)
|
||||
return PROVIDER_INFO(crc32_gzip_refl_hw_fold);
|
||||
}
|
||||
|
||||
if (auxval & HWCAP_PMULL)
|
||||
return PROVIDER_INFO(crc32_gzip_refl_pmull);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user