Counting the number of Leading Zeros for a 32-bit Integer (Signed or Unsigned) January 23, 2014 C/C++, integer 1 Comment To count the number of leading zeros for a integer, we can use the following intuitive (bruteforce) method to increment the number of zeros until a first one (from … [Continue Reading...]