mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue 14814: Remove dead function (noticed by Serhiy Storchaka)
This commit is contained in:
parent
6803855ecf
commit
27396a1807
2 changed files with 0 additions and 19 deletions
|
@ -183,24 +183,6 @@ def _find_address_range(addresses):
|
|||
return (first, last)
|
||||
|
||||
|
||||
def _get_prefix_length(number1, number2, bits):
|
||||
"""Get the number of leading bits that are same for two numbers.
|
||||
|
||||
Args:
|
||||
number1: an integer.
|
||||
number2: another integer.
|
||||
bits: the maximum number of bits to compare.
|
||||
|
||||
Returns:
|
||||
The number of leading bits that are the same for two numbers.
|
||||
|
||||
"""
|
||||
for i in range(bits):
|
||||
if number1 >> i == number2 >> i:
|
||||
return bits - i
|
||||
return 0
|
||||
|
||||
|
||||
def _count_righthand_zero_bits(number, bits):
|
||||
"""Count the number of zero bits on the right hand side.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue