4 ms·
It is also incredibly useful for doing string scanning - look at strlen/strchr in various libc imp lementations
by rcgorton 5y ago
It is also incredibly useful for doing string scanning - look at strlen/strchr in various libc imp lementations
- chrchang523 5y agoNitpick: it's the related "count trailing zeros" operation that is useful (in combination with movemask) there, not popcount itself.