multiply all array element in cortex-m4

void scale1(uint32_t dst[], uint32_t src[], uint32_t size, uint32_t value){
   uin32_t i;
   for(i=0;i<size;i++){
      dst[i] = src[i]*value;
   }
}

void scale2(float32_t dst[], uint32_t src[], uint32_t size, float32_t value){
   uin32_t i;
   for(i=0;i<size;i++){
      dst[i] = src[i]*value;
   }
}

hello all, I'm learn cortex-m4 which has dsp instruction

may I ask like code above, when I need to multiply all array element,

is there a much faster way to handle this situation,

is the way can be suitable for multiplier is float type?

 

thanks all, for giving me any idea =)

More questions in this forum