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

Method divide

cutlass.py/fast_math.py:19–20  ·  view source on GitHub ↗
(self, dividend)

Source from the content-addressed store, hash-verified

17 self.shift_right = integer_log2(divisor)
18
19 def divide(self, dividend):
20 return dividend >> self.shift_right
21
22 def modulus(self, dividend):
23 return dividend & (self.divisor - 1)

Callers 1

divmodMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected