woopsJoost Buijs wrote: ↑Sat Dec 01, 2018 9:16 amHaha, I always thought it was << 1, always good to learn something new.

Moderator: Ras
woopsJoost Buijs wrote: ↑Sat Dec 01, 2018 9:16 amHaha, I always thought it was << 1, always good to learn something new.
Very nice. But that's why I measured it to confirm it was indeed faster with my compiler and runtime. Theory is great, but if you want to know which horse is faster, then race your horses.I have a surprise for you : Clang notice you're doing a popcnt and replace the code with the asm instruction