Function midpoint

Source
fn midpoint(a: Fixed, b: Fixed) -> Fixed
Expand description

Computes midpoint between a and b, avoiding overflow if the sum of the high 16 bits exceeds i16::MAX.