MCPcopy Index your code
hub / github.com/python/cpython / _high_bit

Function _high_bit

Lib/enum.py:1669–1673  ·  view source on GitHub ↗

returns index of highest bit, or -1 if value is zero or negative

(value)

Source from the content-addressed store, hash-verified

1667
1668
1669def _high_bit(value):
1670 """
1671 returns index of highest bit, or -1 if value is zero or negative
1672 """
1673 return value.bit_length() - 1
1674
1675def unique(enumeration):
1676 """

Callers 2

_generate_next_value_Method · 0.85
__call__Method · 0.85

Calls 1

bit_lengthMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…