3 ms·
That's what the `memchr` crate does. It uses `vshrn` just like in your links. And vpmaxq before even bothering with vshrn: https://github.com/BurntSushi/memchr/
by burntsushi 3y ago
That's what the `memchr` crate does. It uses `vshrn` just like in your links. And vpmaxq before even bothering with vshrn: https://github.com/BurntSushi/memchr/blob/c6b885b870b6f1b9bfae2de482e1264d6c7aa040/src/vector.rs#L357-L360 https://github.com/BurntSushi/memchr/blob/c6b885b870b6f1b9bf...