Skip to content

Commit

Permalink
Merge pull request #55 from Lynnesbian/master
Browse files Browse the repository at this point in the history
Check bit 28 for AVX support
  • Loading branch information
zhangsoledad authored Sep 23, 2024
2 parents a7ce51f + e31a4f1 commit cc0da4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn vectorization_support_no_cache_x86() -> Vectorization {

let have_xsave = (proc_info_ecx >> 26) & 1 == 1;
let have_osxsave = (proc_info_ecx >> 27) & 1 == 1;
let have_avx = (proc_info_ecx >> 27) & 1 == 1;
let have_avx = (proc_info_ecx >> 28) & 1 == 1;
if have_xsave && have_osxsave && have_avx {
// # Safety: We checked that the processor supports xsave
if unsafe { avx2_support_no_cache_x86() } {
Expand Down

0 comments on commit cc0da4a

Please sign in to comment.