Searched refs:count_set_bits (Results 1 – 2 of 2) sorted by relevance
1444 count_set_bits(unsigned long n) in count_set_bits() function1702 two_valuation = PyLong_FromLong(x - count_set_bits(x)); in math_factorial()
97 def count_set_bits(n): function99 return 1 + count_set_bits(n & n - 1) if n else 0124 return outer << (n - count_set_bits(n))