Added LDPC flooded early stop

This commit is contained in:
Xavier Arteaga 2021-04-23 16:41:20 +02:00 committed by Andre Puschmann
parent 033661182a
commit 8cb3e92ab3
1 changed files with 14 additions and 0 deletions

View File

@ -137,8 +137,22 @@
} \
\
update_ldpc_soft_bits_##SUFFIX(q->ptr, q->var_indices); \
\
if (crc != NULL) { \
extract_ldpc_message_##SUFFIX(q->ptr, message, q->liftK); \
\
if (srsran_crc_match(crc, message, q->liftK - crc->order)) { \
return i_iteration + 1; \
} \
} \
} \
\
/* If reached here, and CRC is being checked, it has failed */ \
if (crc != NULL) { \
return 0; \
} \
\
/* Without CRC, extract message and return the maximum number of iterations */ \
extract_ldpc_message_##SUFFIX(q->ptr, message, q->liftK); \
\
return q->max_nof_iter; \