Source
- URL: https://x.com/BenSimsTech/status/1947984883936354406
- Author: Ben Sims (@BenSimsTech)
- Posted: 2025-07-23 11:39:22
Branch
1/ @BenSimsTech
@nicbarkeragain
Seems like the problem is that both options are badly written and it’s a matter of luck whether the compiler optimises it or not.
I wouldn’t encourage using muls instead of branches as a general rule, instead I’d be telling people to check their compiled code and adjust if needed