MCPcopy Create free account
hub / github.com/andeya/algorithm / Mod

Function Mod

mathutil/mersenne/mersenne.go:186–204  ·  view source on GitHub ↗

Mod sets mod to n % Mexp and returns mod. It panics for exp == 0 || exp >= math.MaxInt32 || n < 0.

(mod, n *big.Int, exp uint32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

TestModFunction · 0.85
benchmarkModFunction · 0.85
ModPowFunction · 0.85

Calls 4

CmpMethod · 0.80
NewFunction · 0.70
SetMethod · 0.65
AddMethod · 0.65

Tested by 2

TestModFunction · 0.68
benchmarkModFunction · 0.68