Efficient mod 3 in x86 assembly

Viewed 1329

The DIV instruction is expensive on modern processors. Is there a faster way to reduce a 64-bit integer mod 3 in x86 assembly?

1 Answers
Related