It might be better to split it into two different functions and wrap it with a feature-flag defined at the top of the file.  The feature flag can help provide some idea that this is just a different mag compensation algo.  You could also write a short comment above each of the alternative functions saying what makes them different.

Makes it more obvious that these are alternatives that are fighting for top spot.