title: a function to check if the nth bit is set in a byte
body: <p>I want a simple C function which will return true if the n-th bit in a byte is set to<code>1</code>. Otherwise it will return false.</p>
  
  <p>This is a critical function in terms of execution time, so I am thinking of the most optimal way to do that.</p>