10 Jul
2017
10 Jul
'17
5:52 p.m.
Andrey Semashev wrote:
On 07/10/17 19:57, Phil Endecott via Boost wrote:
I thought I'd have a look at that. Your code has a fast-path that attempts to check 8 bytes at a time by masking with 0x8080808080808080. I agree that that is probably a useful optimisation which a compiler is unlikely to apply by itself.
I wouldn't be so quick to agree. Modern compilers tend to be able to vectorize simple loops quite efficiently.
Try it.