Update mask calculation in ExtractBitRange