Skip to content

Commit 7f72500

Browse files
committed
Inline clear_leftmost_set
1 parent dbab616 commit 7f72500

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/bits.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ pub mod x86;
2323
#[cfg(target_arch = "wasm32")]
2424
pub mod wasm32;
2525

26-
mod bits;
2726
mod memcmp;
2827

2928
use memchr::memchr;
@@ -237,7 +236,8 @@ unsafe fn vector_search_in_chunk<N: NeedleWithSize + ?Sized, V: Vector>(
237236
return true;
238237
}
239238

240-
eq = dispatch!(bits::clear_leftmost_set(eq));
239+
// clear left-most bit
240+
eq = eq & (eq - 1);
241241
}
242242

243243
false

0 commit comments

Comments
 (0)