Tonelli-Shanks algorithm: Difference between revisions

m
Minor code reformatting.
(New post.)
m (Minor code reformatting.)
Line 1,444:
uint64_t result = 1;
while ( exponent > 0 ) {
if ( ( exponent & 1 ) == 1 ) {
result = multiply_modulus(result, base, modulus);
}
894

edits