←back to thread

420 points gnabgib | 1 comments | | HN request time: 0.21s | source
Show context
charcircuit ◴[] No.44001358[source]
The original function is likely only going to be 3 instructions. xor, test, jne and only 1 of these is dependent on a previous instruction. In the "fast" version from the article there are 4 instructions with each depending on the previous instruction. I'm not surprised it lost in the benchmark.
replies(2): >>44002317 #>>44002904 #
1. degamad ◴[] No.44002317[source]
3 instructions and a branch prediction.