fn compute_mid_delta(min: i32, max: i32) -> i16
Compute the mid delta between two values, using wrapping arithmetic.