bytemask_from_count
#define bytemask_from_count(cnt) (~(~0ul << (cnt)*8))
#define bytemask_from_count(cnt) (~(~0ul >> (cnt)*8))