I'm just start learning ARM cortex-M4, that have advanced funcition like DSP instruction,FPU, ...
uint32_t my_rearrange(uint32_t value){ uint32_t value_high = (value & 0xffff0000)>>16; uint32_t value_low = (value & 0x0000ffff); return (value_low<<16)|value_high; }
There is a simple code for rearrange an unsinged int vairable.
Is there anyway to improve this function with best performance or execute fastest in cortex-M4?
Is there a way to use dsp instruction in this fuction?