MCPcopy Index your code
hub / github.com/RustPython/RustPython / _high_bit

Function _high_bit

Lib/enum.py:1638–1642  ·  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

1636
1637
1638def _high_bit(value):
1639 """
1640 returns index of highest bit, or -1 if value is zero or negative
1641 """
1642 return value.bit_length() - 1
1643
1644def unique(enumeration):
1645 """

Callers 2

_generate_next_value_Method · 0.85
__call__Method · 0.85

Calls 1

bit_lengthMethod · 0.45

Tested by

no test coverage detected