From 262177f4f3cc714079034f6fd855a966bca45517 Mon Sep 17 00:00:00 2001 From: Florian Kaltenberger Date: Fri, 14 Sep 2018 00:48:28 -0700 Subject: [PATCH] patch 2 from Milan Zivkovic (Nokia Bell Labs) --- openair1/PHY/CODING/TESTBENCH/ldpctest.c | 23 ++++++++++++------- openair1/PHY/CODING/nrLDPC_encoder/defs.h | 1 + .../PHY/CODING/nrLDPC_encoder/ldpc_encoder2.c | 8 +++---- 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/openair1/PHY/CODING/TESTBENCH/ldpctest.c b/openair1/PHY/CODING/TESTBENCH/ldpctest.c index 49af918bd9..d0fb170cf4 100644 --- a/openair1/PHY/CODING/TESTBENCH/ldpctest.c +++ b/openair1/PHY/CODING/TESTBENCH/ldpctest.c @@ -310,12 +310,18 @@ int test_ldpc(short No_iteration, } stop_meas(&time); - start_meas(time_optim); +/* start_meas(time_optim); ldpc_encoder_optim_8seg(test_input,channel_input_optim,block_length,BG,n_segments,&tinput,&tprep,&tparity,&toutput); - /*for(j=0;j0&&n_segments<=8,"0 < n_segments %d <= 8\n",n_segments); //determine number of bits in codeword - if (block_length>3840) + if (BG==1) { BG=1; Kb = 22; nrows=46; //parity check bits ncols=22; //info bits } - else if (block_length<=3840) + else if (BG==2) { BG=2; nrows=42; //parity check bits