Source

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