def _count0Bits(num):
 num = long(num)
 if (num < 0):
  raise ValueError(('Only positive Numbers please: %s' % num))
 ret = 0
 while (num > 0):
  if ((num & 1) == 1):
   break
  num = (num >> 1)
  ret += 1
 return ret

def _count0Bits ( num ) : num = long ( num ) if ( num < 0 ) : raise ValueError ( ( 'Only positive Numbers please: %s' % num ) ) ret = 0 while ( num > 0 ) : if ( ( num & 1 ) == 1 ) : break num = ( num >> 1 ) ret += 1 return ret
find the highest bit set to 0 in an integer .