Why art thou speculating? use Benchmark;
I benchmarked the bitwise operation with my method and even then my method wins... for 1e6 iterations.
Rate machine bitwise machine 819199/s -- -43% bitwise 1448690/s 77% --
In reply to Re^2: A mod2 Machine.
by code-ninja
in thread A mod2 Machine.
by code-ninja
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |