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

Function inner

Lib/_pylong.py:157–163  ·  view source on GitHub ↗
(n, w)

Source from the content-addressed store, hash-verified

155 # Don't bother caching the "lo" mask in this; the time to compute it is
156 # tiny compared to the multiply.
157 def inner(n, w):
158 if w <= BITLIM:
159 return D(n)
160 w2 = w >> 1
161 hi = n >> w2
162 lo = n & ((1 << w2) - 1)
163 return inner(lo, w2) + inner(hi, w - w2) * w2pow[w2]
164
165 with decimal.localcontext(_unbounded_dec_context):
166 nbits = n.bit_length()

Callers 7

int_to_decimalFunction · 0.70
int_to_decimal_stringFunction · 0.70
_str_to_int_innerFunction · 0.70
_dec_str_to_int_innerFunction · 0.70
_int2digitsFunction · 0.70
_digits2intFunction · 0.70
consumerFunction · 0.70

Calls 7

DClass · 0.90
strFunction · 0.85
adjustedMethod · 0.80
zfillMethod · 0.45
extendMethod · 0.45
to_integral_valueMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…