Simpler implementation of the Mitchell-Moore algorithm.
Don't mask with less than 32 bits. Fix the byte swap, which was binary OR.