Searched refs:count_set_bits (Results 1 - 2 of 2) sorted by relevance

/external/python/cpython3/Modules/
H A Dmathmodule.c1265 count_set_bits(unsigned long n) function
1336 * equal to n - count_set_bits(n), where count_set_bits(n) gives the number of
1510 two_valuation = PyLong_FromLong(x - count_set_bits(x));
/external/python/cpython3/Lib/test/
H A Dtest_math.py81 # factorial(n) = factorial_odd_part(n) << (n - count_set_bits(n))
97 def count_set_bits(n): function
99 return 1 + count_set_bits(n & n - 1) if n else 0
124 return outer << (n - count_set_bits(n))

Completed in 163 milliseconds