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.
Nice to see that you look to extract the most of your target Microcontroller !
In your case, intrinsic usage would not make you gain cycles but you may see other advantages of using such instructions.
I have listed a couple of advantages in a previous blog post (What intrinsics make you gain | ARM Cortex M4 & M7 Unleashed) if you're interested !
Thank you for the link. I will definitely read your blog.