public static int LeastPosition(uint num) { if (num == 0) return 0; return Count(num ^ (num - 1)); } }