5 ms·
Avoiding jmp in assembly is a sensible thing to do. jmp may stall the pipeline if the branch predictor is wrong. Better to use cmov when you can. And if we'r
by efaref 5y ago
Avoiding jmp in assembly is a sensible thing to do. jmp may stall the pipeline if the branch predictor is wrong. Better to use cmov when you can.
And if we're being silly, you only really need mov[1].
[1]: https://github.com/xoreaxeaxeax/movfuscator https://github.com/xoreaxeaxeax/movfuscator
- IshKebab 5y agoThat's a completely separate architecture-specific micro-optimisation.