Handle any possible combination of bit-widths and offsets [978].
Merge pull request #40 from tommyjasmin/master

Handle any possible combination of bit-widths and offsets [978].