Function memchr::arch::all::rabinkarp::is_equal_raw

source ·
unsafe fn is_equal_raw(x: *const u8, y: *const u8, n: usize) -> bool
Expand description

Returns true when x[i] == y[i] for all 0 <= i < n.

We forcefully don’t inline this to hint at the compiler that it is unlikely to be called. This causes the inner rabinkarp loop above to be a bit tighter and leads to some performance improvement. See the memmem/krate/prebuilt/sliceslice-words/words benchmark.

§Safety

Same as crate::arch::all::is_equal_raw.