X-Git-Url: https://code.octet-stream.net/m17rt/blobdiff_plain/ed89ed42024f30e94e27084ec2b9ee0acb038b62..bd5155840661f90aab8c06413fb1e9f256824b55:/m17core/src/fec.rs?ds=inline 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 {