Given a register mask, find and return the number of the first register that fits.
See Implementation
Given a register mask, find and return the number of the first register that fits.