You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2026. It is now read-only.
This is UB: the two load functions are #[target_feature(enable = "avx")], which means they are not unconditionally available on all x86 platforms. This should probably check if cfg_feature_enabled!("avx") or use cfg!(target_feature = "avx2"). In the latter case, the avx calls will only be reached if compiling with AVX enabled (whereas in the former, you can have one binary for all x86 chips and there's a runtime check)
bitmaps/src/bitmap.rs
Lines 691 to 701 in b449cec
This is UB: the two
loadfunctions are#[target_feature(enable = "avx")], which means they are not unconditionally available on all x86 platforms. This should probably checkif cfg_feature_enabled!("avx")or usecfg!(target_feature = "avx2"). In the latter case, the avx calls will only be reached if compiling with AVX enabled (whereas in the former, you can have one binary for all x86 chips and there's a runtime check)