MCPcopy Create free account
hub / github.com/KnowingNothing/MatmulTutorial / FastDivmodU64

Class FastDivmodU64

cutlass.py/fast_math.py:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34class FastDivmodU64:
35 def __init__(self, divisor):
36 self.divisor = divisor
37
38 def divmod(self, x):
39 return (x // self.divisor, x % self.divisor)
40
41 def __call__(self, x):
42 return self.divmod(x)

Callers 1

_initializeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected