pub fn mod_mul(a: i64, b: i64, modulus: i64) -> Option<i64>Expand description
Computes (a * b) mod modulus and returns the normalized residue.
Uses i128 internally to reduce overflow risk for large i64 inputs.
Returns None when modulus <= 0.