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

Method __init__

cutlass.py/fast_math.py:15–17  ·  view source on GitHub ↗
(self, divisor=0)

Source from the content-addressed store, hash-verified

13
14class FastDivmodU64Pow2:
15 def __init__(self, divisor=0) -> None:
16 self.divisor = divisor
17 self.shift_right = integer_log2(divisor)
18
19 def divide(self, dividend):
20 return dividend >> self.shift_right

Callers

nothing calls this directly

Calls 1

integer_log2Function · 0.85

Tested by

no test coverage detected