aboutsummaryrefslogtreecommitdiffstats
path: root/src/cxvec_math.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2014-10-05 10:54:45 +0200
committerSylvain Munaut <tnt@246tNt.com>2014-10-05 10:54:45 +0200
commitf68f75e8b75ded7401821d7fa6c1fbb55e10a19c (patch)
treeb2fa85717960ec391adc26ea30f883966daf9b1a /src/cxvec_math.c
parentcb9371ed09b88e44204fdbed8cc9c65c9b54a93f (diff)
cxvec/math: Make sure to use conjf and not conj to avoid double math
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/cxvec_math.c')
-rw-r--r--src/cxvec_math.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cxvec_math.c b/src/cxvec_math.c
index 64e2d1b..9f81aa5 100644
--- a/src/cxvec_math.c
+++ b/src/cxvec_math.c
@@ -373,13 +373,13 @@ osmo_cxvec_correlate(const struct osmo_cxvec *f, const struct osmo_cxvec *g,
complex float v = 0.0f;
for (n=0,mn=m; n<f->len; n++,mn+=g_corr_step)
v += f->data[n] * crealf(g->data[mn]);
- out->data[m] = conj(v);
+ out->data[m] = conjf(v);
}
} else {
for (m=0; m<l; m++) {
complex float v = 0.0f;
for (n=0,mn=m; n<f->len; n++,mn+=g_corr_step)
- v += conj(f->data[n]) * g->data[mn];
+ v += conjf(f->data[n]) * g->data[mn];
out->data[m] = v;
}
}