[go: up one dir, main page]

memchr 2.7.6

Provides extremely fast (uses SIMD on x86_64, aarch64 and wasm32) routines for 1, 2 or 3 byte search and single substring search.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_use]
pub(crate) mod memchr;
pub(crate) mod packedpair;
#[macro_use]
pub(crate) mod substring;

// For debugging, particularly in CI, print out the byte order of the current
// target.
#[test]
fn byte_order() {
    #[cfg(target_endian = "little")]
    std::eprintln!("LITTLE ENDIAN");
    #[cfg(target_endian = "big")]
    std::eprintln!("BIG ENDIAN");
}