AnsweredAssumed Answered

Cortex-M4 DSP instruction

Question asked by obid.matic on May 2, 2016
Latest reply on May 3, 2016 by obid.matic


I would like to ask, if anyone knows, if there is a DSP instruction for Cortex-M4, which would calculate x*x + y*y. I saw that there are some quite complex instruction which are intended for similar calculations, but didn't find one for exactly that calculation.


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) as fast as possible. 


Thanks in advance.