title: Is comparing to zero faster than comparing to any other number?
body: <p>Is</p>
  
  <pre><code>if(!test)
  </code></pre>
  
  <p>faster than</p>
  
  <pre><code>if(test==-1)
  </code></pre>
  
  <p>I can produce assembly but there is too much assembly produced and I can never locate the particulars I'm after.  I was hoping someone just knows the answer.  I would guess they are the same unless most CPU architectures have some sort of "compare to zero" short cut.</p>
  
  <p>thanks for any help.  </p>