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.

MSP432 FPU

Hi there,

i am using digital filters on the MSP432 and i want to know if the FPU unit is been used in all operations "+ - * and /"

So i went and look at the Disassembly code and saw in the filter code this:

1- Is the floating point only been used at the "VMLS.F32"? Why not at ADDS  and the others?

     All the variables are declared as "float" except for "j = a = uint8_t "

2- How do i know that my filter coefficient is in a single precision? I have declared a float array:

Do i need to put a "f" after those coefficients? Or does the Compiler knows that already by the definition float?

  • Hi Michael,

    Michael Liesenberg85 said:
    1- Is the floating point only been used at the "VMLS.F32"? Why not at ADDS  and the others?

    VMLS.F32 performs the multiplication and substraction of the floating point numbers but the FPU is not needed for anything else because the other operations are not using floating point.

    Michael Liesenberg85 said:

    2- How do i know that my filter coefficient is in a single precision? I have declared a float array:

    You don't need the "f", you are defining the array as a float so the compiler will know that the numbers are floating point.

    Regards,
    Luis R

**Attention** This is a public forum