The only exception is when one case executes much more often than the others. The dummy parameter is not used by the function, but is there to encourage burst memory writes. This only makes a minimal difference in speed. This is because C does not initialize variables by default. END SUB - Simplify comparisons using simpler monotonic functions.
Monotonic functions are functions that always grow upwards or always grow downwards.
In the example, an expensive square root was removed by squaring both sides, since squaring is a monotonic function.