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

Function ModPowByte

mathutil/mathutil.go:242–258  ·  view source on GitHub ↗

ModPowByte computes (b^e)%m. It panics for m == 0 || b == e == 0. See also: http://en.wikipedia.org/wiki/Modular_exponentiation#Right-to-left_binary_method

(b, e, m byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestModPowByteFunction · 0.85
BenchmarkModPowByteFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestModPowByteFunction · 0.68
BenchmarkModPowByteFunction · 0.68