Compare two values, and if they are different, return the position of the
most significant bit that is different in the values.
Needed for D69387.
Doesn't this only run once for BitWidth = 8 ?
Oops, forgot to undo that..
Improve test, NFC.
LGTM, though I'd suggest a more compact name.
The name seems a bit excessive -- I think GetMostSignificantDifferingBit would have the same information content.
Thank you for the review!
I will go with the most short one,
Also, this needs a bit more tests, will add when committing.