mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-11-20 17:44:15 +00:00
u32_to_i32_avx2, compact and compute_filter_bitset only use AVX2 intrinsics on values, with no pointers. Since Rust 1.86, a #[target_feature] fn can be safe, and calling it from a context with the same feature needs no unsafe block. u32_to_i32_avx2 also gains its missing #[target_feature(enable = "avx2")]. The unsafe blocks in filter_vec_avx2_aux now only cover the pointer load, store and offsets.