I am studying to program the Sport Boy Superior (an outdated Nintendo console.) I used to be studying among the finest tutorials about it and it stated this about how branching will be completed with arithmetic.
[To optimise your code] keep away from branches. Issues that redirect program circulation (ifs, loops, switches) typically value greater than different operations akin to arithmetic. Generally it is potential to successfully do the department with arithmetic (for instance, (int)x>>1 offers −1 or 0, relying on the signal of x)
(Emphasis mine. Taken from https://www.coranac.com/tonc/textual content/first.htm)
But when it returns Zero or -1, would not you continue to want a department to examine which one it’s and execute the in accordance directions? Clearly the above rationalization is lacking some particulars however I do not see how this avoids a department.