title: Which Byte is a Bit in?
body: <p>A bit of a strange one but here goes....</p>
  
  <p>How can I mathematically determine which byte a certain bit is in?</p>
  
  <p>For example, if I have a 32-bit word there are four 8-bit bytes.  I would like to know which of these four bytes a certain bit is in.  So using some random bits as an example, bit 7 is in the first byte, bit 12 is in the second, 19 is in the third and so on.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>