mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 20:36:38 -05:00
Use a better cpu detection
We now follow precisely the Intel documentation.
This commit is contained in:
parent
763dccaaed
commit
1c3000ae04
3 changed files with 114 additions and 63 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue