title: How OR Xor And blocks of memory
body: <p>We have two bitmap such as bitmap1,bitmap2.both initialized with malloc(same parameters). Bitmap1 is assigned such as 0010 0110 and bitmap2 is assigned with 1000 0001. How we do OR operation between bitmaps to make 1010 0111. On the other hand, we want to set bits of bitmap1 that are 1 in corresponding entry in bit2.</p>
  
  <p>We don't want to use some approaches such as:</p>
  
  <pre><code>for(i=0;i&lt;n;i++) bitmap1[i] ||= bitmap2[i];
  </code></pre>
  
  <p>Because these approaches are slower than some functions (e.g. memset,memcpy).
  Any guidance would be useful.
  Programming language is C/C++</p>