diff --git a/lib/src/phy/fec/turbodecoder_avx.c b/lib/src/phy/fec/turbodecoder_avx.c index 2a2f6f925..e25f3a1e7 100644 --- a/lib/src/phy/fec/turbodecoder_avx.c +++ b/lib/src/phy/fec/turbodecoder_avx.c @@ -175,8 +175,8 @@ void map_avx_beta(map_gen_t * s, int16_t * output[SRSLTE_TDEC_NPAR], uint32_t lo bn = _mm256_add_epi16(bn, alpha_k);\ bn = _mm256_sub_epi16(_mm256_set1_epi16(0x7FFF), bn);\ bp = _mm256_sub_epi16(_mm256_set1_epi16(0x7FFF), bp);\ - output[0][k-d] = hMax0(bn) - hMax0(bp);\ - output[1][k-d] = hMax1(bn) - hMax1(bp); + if (output[0]) output[0][k-d] = hMax0(bn) - hMax0(bp);\ + if (output[1]) output[1][k-d] = hMax1(bn) - hMax1(bp); /* The tail does not require to load alpha or produce outputs. Only update * beta metrics accordingly */