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

Function number_split_bits

Tools/unicode/dawg.py:404–409  ·  view source on GitHub ↗
(x, n, acc=())

Source from the content-addressed store, hash-verified

402 return len(res) - startlen
403
404def number_split_bits(x, n, acc=()):
405 if n == 1:
406 return x >> 1, x & 1
407 if n == 2:
408 return x >> 2, (x >> 1) & 1, x & 1
409 assert 0, "implement me!"
410
411def decode_varint_unsigned(b, index=0):
412 res = 0

Callers 2

decode_nodeFunction · 0.85
decode_edgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…