MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _high_bit

Function _high_bit

tools/python-3.11.9-amd64/Lib/enum.py:1569–1573  ·  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

1567
1568
1569def _high_bit(value):
1570 """
1571 returns index of highest bit, or -1 if value is zero or negative
1572 """
1573 return value.bit_length() - 1
1574
1575def unique(enumeration):
1576 """

Callers 3

_generate_next_value_Method · 0.85
_power_of_twoFunction · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected