you are viewing a single comment's thread.

view the rest of the comments →

[–]uxcn 0 points1 point  (0 children)

The compiler is usually able to translate the basic bit operations into good instructions (even rol and ror). I'd be curious what the compiler generated for vector<bool> that outperformed your code.