Question
Convert an unsigned short array to a float array efficiently by FPU
Posted on June 11, 2014 at 14:26
I have an array of unsigned short numbers from sensors. The data will be multiplied with an array of floating point numbers.
To use FPU provided by STM32F407, I need to convert the unsigned short numbers into floating point numbers. There are only libraries converting signed short arrays into floating point arrays. Could I ask if there are any efficient way of converting an unsigned short array into a floating point array? Or the conversion has to be done with a for loop?Any comments will be appreciated.