From 871838078697a211dd194d9e095b381a2c417904 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Mon, 23 Sep 2019 12:44:03 +0200 Subject: [PATCH] use exact size for number of positions --- ldpc_decoder2.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldpc_decoder2.hh b/ldpc_decoder2.hh index 9d63fac..aa885c6 100644 --- a/ldpc_decoder2.hh +++ b/ldpc_decoder2.hh @@ -39,7 +39,7 @@ class LDPCDecoder static const int MSG = K/D; static const int CNC = TABLE::LINKS_MAX_CN - 2; static const int BNL = (TABLE::LINKS_TOTAL + D-1) / D; - static const int POS = PTY * CNC; + static const int POS = (TABLE::LINKS_TOTAL - (2*R-1) + D-1) / D; typedef SIMD TYPE;