Number of data words from bytes

In reply to Robert.Lanier:

The integer division effectively gives you a “floor” function. The +3 basically give you an offset on your argument. Try my solution, I think it fits your requirements perfectly.