const fn is_ascii(bytes: &[u8]) -> boolAvailable on x86-64 and target feature
sse2, or LoongArch LA64 and target feature lsx only.Expand description
ASCII test optimized to use the pmovmskb instruction on x86-64 and the
vmskltz.b instruction on loongarch64.
Other platforms are not likely to benefit from this code structure, so they
use SWAR techniques to test for ASCII in usize-sized chunks.