MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / kmul_split

Function kmul_split

Objects/longobject.c:2664–2690  ·  view source on GitHub ↗

A helper for Karatsuba multiplication (k_mul). Takes a long "n" and an integer "size" representing the place to split, and sets low and high such that abs(n) == (high << size) + low, viewing the shift as being by digits. The sign bit is ignored, and the return values are >= 0. Returns 0 on success, -1 on failure. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

k_mulFunction · 0.85

Calls 2

_PyLong_NewFunction · 0.85
long_normalizeFunction · 0.85

Tested by

no test coverage detected