From e3ae271f5c21cbf146e4d42921f639b112f0643c Mon Sep 17 00:00:00 2001 From: marojevic Date: Mon, 21 Jul 2014 17:20:25 -0400 Subject: [PATCH 1/2] Optimization of soft demodulation algorithm implementation. --- lte/phy/lib/modem/src/soft_algs.c | 108 +++++++++++++++--------------- 1 file changed, 53 insertions(+), 55 deletions(-) diff --git a/lte/phy/lib/modem/src/soft_algs.c b/lte/phy/lib/modem/src/soft_algs.c index 9ecd2b599..d193daea3 100644 --- a/lte/phy/lib/modem/src/soft_algs.c +++ b/lte/phy/lib/modem/src/soft_algs.c @@ -50,49 +50,44 @@ * \param S Soft demapping auxiliary matrix * \param sigma2 Noise vatiance */ +/* Note: Optimized implementation of approximate LLR algorithm, July 2014*/ void llr_approx(const _Complex float *in, float *out, int N, int M, int B, _Complex float *symbols, uint32_t (*S)[6][32], float sigma2) { int i, s, b; float num, den; - float new_num, new_den; - float idiff0, qdiff0, idiff1, qdiff1; int change_sign = -1; + float x, y, d[64]; - for (s=0; s Date: Mon, 21 Jul 2014 17:40:18 -0400 Subject: [PATCH 2/2] Modifying comments in soft_algs.c. --- lte/phy/lib/modem/src/soft_algs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lte/phy/lib/modem/src/soft_algs.c b/lte/phy/lib/modem/src/soft_algs.c index d193daea3..12e12591c 100644 --- a/lte/phy/lib/modem/src/soft_algs.c +++ b/lte/phy/lib/modem/src/soft_algs.c @@ -50,7 +50,6 @@ * \param S Soft demapping auxiliary matrix * \param sigma2 Noise vatiance */ -/* Note: Optimized implementation of approximate LLR algorithm, July 2014*/ void llr_approx(const _Complex float *in, float *out, int N, int M, int B, _Complex float *symbols, uint32_t (*S)[6][32], float sigma2) { int i, s, b; @@ -59,7 +58,7 @@ void llr_approx(const _Complex float *in, float *out, int N, int M, int B, float x, y, d[64]; for (s=0; s