title: Bitwise - How can I check if a binary number contains another?
body: <pre><code>  A  = 110000000    -    384 Blue+Red
    B  = 011000010    -    194 Green+Black+Red
  
    A &amp; B =   C  = 010000000    -    128 Red
  </code></pre>
  
  <p>How can I check if B contains all the bits in A and perhaps others? In the case above I would like to get "false".</p>
  
  <p>I'm using XCode &amp; objective-c but that shouldn't matter as far as I know</p>