From cb8dcd0ffb17781ded2dd294402334386b6f6889 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sun, 15 Feb 2026 08:05:24 +0100 Subject: [PATCH] only need m=6 bits with 1011011 --- pac_encoder.hh | 2 +- pac_list_decoder.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pac_encoder.hh b/pac_encoder.hh index 6b642d1..8e141c5 100644 --- a/pac_encoder.hh +++ b/pac_encoder.hh @@ -22,7 +22,7 @@ class PACEncoder bool b4 = (*state >> 4) & 1; bool b6 = (*state >> 6) & 1; bool output = input ^ b1 ^ b3 ^ b4 ^ b6; - *state = ((*state & 126) << 1) | (input ? 2 : 0) | (output ? 1 : 0); + *state = ((*state & 62) << 1) | (input ? 2 : 0) | (output ? 1 : 0); return output; } public: diff --git a/pac_list_decoder.hh b/pac_list_decoder.hh index ec8eb60..e1f0361 100644 --- a/pac_list_decoder.hh +++ b/pac_list_decoder.hh @@ -46,7 +46,7 @@ struct PACListTree bool b4 = (*state >> 4) & 1; bool b6 = (*state >> 6) & 1; bool output = input ^ b1 ^ b3 ^ b4 ^ b6; - *state = ((*state & 126) << 1) | (input ? 2 : 0) | (output ? 1 : 0); + *state = ((*state & 62) << 1) | (input ? 2 : 0) | (output ? 1 : 0); return output; } static MAP rate0(PATH *metric, int *state, TYPE *hard, TYPE *soft)