Commit 86707c05 authored by Massive's avatar Massive

fixing rate to 1/3 to workaround rounof floating point issues. this needs to be done properly.

parent 9c7510fc
......@@ -5566,8 +5566,8 @@ int ldpc_encoder(unsigned char *test_input,unsigned char *channel_input,short bl
}
// calculate number of punctured bits
no_punctured_columns=(int)((nrows-2)*Zc+block_length-block_length/rate)/Zc;
removed_bit=(nrows-no_punctured_columns-2) * Zc+block_length-(int)(block_length/rate);
no_punctured_columns=(int)((nrows-2)*Zc+block_length-block_length*3)/Zc;
removed_bit=(nrows-no_punctured_columns-2) * Zc+block_length-(int)(block_length*3);
//printf("%d\n",no_punctured_columns);
//printf("%d\n",removed_bit);
// unpack input
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment