mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Require AVX512BW in addition to AVX512F for AVX-512 GFNI detection
This commit is contained in:
parent
fdce9738e8
commit
24a8464fc0
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ static inline int raid_cpu_has_avx512bw(void)
|
|||
static inline int raid_cpu_has_avx512gfni(void)
|
||||
{
|
||||
uint32_t leaf_1_ecx = 1 << 27; /* XSAVE/XGETBV */
|
||||
uint32_t leaf_7_ebx = 1 << 16; /* AVX512F (Foundation) */
|
||||
uint32_t leaf_7_ebx = (1 << 16) | (1 << 30); /* AVX512F and AVX512BW */
|
||||
uint32_t leaf_7_ecx = 1 << 8; /* GFNI */
|
||||
uint32_t xcr0 = (3 << 1) | (7 << 5); /* OS saves XMM, YMM and ZMM registers */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue