title: C/C++: is it faster to assign a 0 to an unsigned long variable or to xor the variable with itself?
body: <p>I realize the difference may be negligible, but which is more efficient in trying to zero an unsigned long?</p>
  
  <pre><code>unsigned long x;
  
  ...
  
  x=0;
  
  --OR--
  
  x^=x;
  </code></pre>
  
  <p>Taylor</p>