Commit f22daee7 authored by Kevin JOLY's avatar Kevin JOLY

Update MS flooded decoder

Do not use temporary variable for minLLR1 and minLLR2 computation.
parent bf5c4d1c
......@@ -114,9 +114,8 @@ void CDecoder_MS_fixed_flooded::decode(
char vn = *p_vn_addr[cn_offset + edge_idx];
signGlobal ^= vn;
abs[edge_idx] = (vn >= 0 ? vn : -vn);
char tmp = minLLR1;
minLLR2 = minLLR2 < abs[edge_idx] ? minLLR2 : abs[edge_idx] > minLLR1 ? abs[edge_idx] : minLLR1;
minLLR1 = minLLR1 < abs[edge_idx] ? minLLR1 : abs[edge_idx];
minLLR2 = minLLR2 < abs[edge_idx] ? minLLR2 : abs[edge_idx] > tmp ? abs[edge_idx] : tmp;
}
#if (DEG_1 & 0x1)
......@@ -149,9 +148,8 @@ void CDecoder_MS_fixed_flooded::decode(
char vn = *p_vn_addr[cn_offset + edge_idx];
signGlobal ^= vn;
abs[edge_idx] = (vn >= 0 ? vn : -vn);
char tmp = minLLR1;
minLLR2 = minLLR2 < abs[edge_idx] ? minLLR2 : abs[edge_idx] > minLLR1 ? abs[edge_idx] : minLLR1;
minLLR1 = minLLR1 < abs[edge_idx] ? minLLR1 : abs[edge_idx];
minLLR2 = minLLR2 < abs[edge_idx] ? minLLR2 : abs[edge_idx] > tmp ? abs[edge_idx] : tmp;
}
#if (DEG_2 & 0x1)
......
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