2 ms·
Things like this are why I wish x86 would've exploited its CISC-ness to do more autovectorisation in hardware, something like this: mov rsi, ptr mov rc
by userbinator 6y ago
Things like this are why I wish x86 would've exploited its CISC-ness to do more autovectorisation in hardware, something like this:
mov rsi, ptr
mov rcx, size
repz andb 80h ; while(rcx-- && !(al = *rsi++ & 0x80)) ;
setz al