X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/e67ea96c8a3d7c23ba29c6ed91ddb451927176a1..d610ea7b4224b89b5a1c481697d6c9e8fa7ce87c:/m17core/src/fec.rs diff --git a/m17core/src/fec.rs b/m17core/src/fec.rs index 7538417..0716be0 100755 --- a/m17core/src/fec.rs +++ b/m17core/src/fec.rs @@ -181,6 +181,11 @@ pub(crate) fn p_2(step: usize) -> (bool, bool) { (true, mod6 != 5) } +pub(crate) fn p_3(step: usize) -> (bool, bool) { + let mod4 = step % 4; + (true, mod4 != 3) +} + fn best_previous(table: &[[u8; 32]; 244], step: usize, state: usize) -> u8 { if step == 0 { if state == 0 {