title: C# equivalent of Java's Long.numberOfLeadingZeros
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10439242/c-sharp-count-leading-zeroes-in-an-int32">C# - count leading zeroes in an Int32</a>  </p>
  </blockquote>
  
  
  
  <p>I'm looking for the C# equivalent to this: <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Long.html#numberOfLeadingZeros(long)" rel="nofollow noreferrer">http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Long.html#numberOfLeadingZeros(long)</a></p>
  
  <p>From the Java docs:</p>
  
  <blockquote>
    <p>Returns the number of zero bits preceding the highest-order
    ("leftmost") one-bit in the two's complement binary representation of
    the specified long value.</p>
  </blockquote>
  
  <p>Hopefully it is already implemented somewhere...</p>