Function reduction

Source
fn reduction<I: Int>(x: I, e: u32, y: I) -> I
Expand description

Compute the remainder (x * 2.pow(e)) % y without overflow.