Binary AND with two false values resulting with true
<p>Very simple question, lets say I have to values in C++ and AND them</p>

<p>0101 &amp; 0110 = 0100</p>

<p>I want the output to be the same as a boolean equal on each value IE: 1100</p>

<p>This needs to be a fast as possible, as this is a low level process for a performance application. I am just getting started with bit operations, so there is probably something simple for this.</p>

<p>Thanks.</p>