Use the new maskToBitWidth function to ensure that the results of