This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

convert array

Hello,

I'm using C28x part of Concerto device.

I have an array of uint16 samples and I have

to convert them in an array of float

as fast as possible.

Is there an assembly snippet to this ?

thankyou

  • Hi Mauro,

    There's no such ready-made function present, you'll have to work on it! Here's a c function if you're interested:

    float fArray[sizeOfIntArray];
    
    // step through each element of integer array, and copy into float array as float   
    for(int i = 0; i < sizeOfIntArray; ++i) {
        fArray[i] = (float)iArray[i];
    }

    Regards,

    Gautam