Commit bf5cf3c9 authored by Roberto Louro Magueta's avatar Roberto Louro Magueta

Call cdMul() function

parent 3845e5cf
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment