fn compute_new_weight( probs: [u16; 2], weighted_prob: u16, weights: [i32; 2], index_equal_1: bool, _speed: u8, ) -> i32