From f68f75e8b75ded7401821d7fa6c1fbb55e10a19c Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 5 Oct 2014 10:54:45 +0200 Subject: cxvec/math: Make sure to use conjf and not conj to avoid double math Signed-off-by: Sylvain Munaut --- src/cxvec_math.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cxvec_math.c') 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; nlen; 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; mlen; 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; } } -- cgit v1.2.3