MCPcopy Index your code
hub / github.com/ethereum/research / inv

Method inv

binius/binary_fields.py:82–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80 return self.__pow__(other % 2) * self.__pow__(other // 2) ** 2
81
82 def inv(self):
83 L = 1 << (self.value.bit_length() - 1).bit_length()
84 return self ** (2**L - 2)
85
86 def __truediv__(self, other):
87 if isinstance(other, int):

Callers 2

__truediv__Method · 0.95
get_WiFunction · 0.45

Calls 1

bit_lengthMethod · 0.80

Tested by

no test coverage detected