MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / fast_power

Function fast_power

src/math/fast_power.rs:2–14  ·  view source on GitHub ↗

fast_power returns the result of base^power mod modulus

(mut base: usize, mut power: usize, modulus: usize)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

is_residueFunction · 0.85
cipollaFunction · 0.85
tonelli_shanksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected