Hello all!
I am new to ARM community and this is my first question here. I work on embedded systems where we use Cortex-M4 based MCUs (concretely STM32F3 series). I would like to ask, if there is a DSP instruction which would calculate x*x + y*y.
x and y represent sine and cosine values (signed integers, 16-bit variables are sufficient). I would like to calculate a square of amplitude (x*x + y*y).
Thanks in advance.
Hi,
Why don't you use SMUAD{X} instruction? It performs bottom x bottom + top x top. Additionally it can support bottom x top + top x bottom as well.
Regards, Prasad
Great. I did't see this one.
Thank you.
Matic