From bf5cf3c908033c1b1729abc47209f77459afc0ca Mon Sep 17 00:00:00 2001 From: Roberto Louro Magueta Date: Wed, 16 Nov 2022 19:09:09 +0000 Subject: [PATCH] Call cdMul() function --- openair1/PHY/TOOLS/tools_defs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openair1/PHY/TOOLS/tools_defs.h b/openair1/PHY/TOOLS/tools_defs.h index 2d8a032570..55668cd44d 100644 --- a/openair1/PHY/TOOLS/tools_defs.h +++ b/openair1/PHY/TOOLS/tools_defs.h @@ -139,6 +139,13 @@ extern "C" { }; } + __attribute__((always_inline)) inline cd_t cdMul(const cd_t a, const cd_t b) + { + return (cd_t) { + .r = a.r * b.r - a.i * b.i, + .i = a.r * b.i + a.i * b.r + }; + } // On N complex numbers // y.r += (x * alpha.r) >> 14