Hi Adhemerval, Thanks for commonizing that. I'm surprised it hasn't been done earlier. Anyhow, coincidental timing. I posted https://sourceware.org/ml/libc-alpha/2016-03/msg00642.html friday to optimize strspn with vector bit permutes. We'll need to coordinate these patches. Thanks, Paul