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

Method modulus

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

Source from the content-addressed store, hash-verified

20 return dividend >> self.shift_right
21
22 def modulus(self, dividend):
23 return dividend & (self.divisor - 1)
24
25 def divmod(self, dividend):
26 quotient = self.divide(dividend)

Callers 1

divmodMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected