pub fn apply_affine_function( a_value: i64, numerator: u32, denominator: u32, a_offset: i64, b_offset: i64, ) -> i64