SHORT_BITS
u32 result = SHORT_BITS;
while ((n & (1 << (SHORT_BITS - 1))) == 0) {
result &= (0xffff >> (SHORT_BITS - (bits + shift)));