Call cdMul() function

This commit is contained in:
Roberto Louro Magueta
2022-11-25 11:03:45 +00:00
parent 3845e5cff3
commit bf5cf3c908
+7
View File
@@ -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