title: How could I implement logical implication with bitwise or other efficient code in C?
body: <p>I want to implement a logical operation that works as efficient as possible. I need this truth table:</p>
  
  <pre><code>p    q    p → q
  T    T      T
  T    F      F
  F    T      T
  F    F      T
  </code></pre>
  
  <p>This, according to wikipedia is called "<a href="http://en.wikipedia.org/wiki/Logical_implication" rel="noreferrer">logical implication</a>"</p>
  
  <p>I've been long trying to figure out how to make this with bitwise operations in C without using conditionals. Maybe someone has got some thoughts about it.</p>
  
  <p>Thanks</p>