Skip to main content
Lingjun Kong
Associate III
August 3, 2017
Solved

Question about the assemble code for floating point computing: the FPU didn't be used in fact?

  • August 3, 2017
  • 1 reply
  • 1755 views
Posted on August 03, 2017 at 22:11

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    Posted on August 03, 2017 at 22:50

    Your CPU only has a single precision FPU, this is why it the double precision computations are being done in software, it is using the FPU registers as extra holding space.

    The FPU isn't inherently complicated, it only implements fairly basic math functionality which you can gleen from the opcode name. The cleverness with come from how you manage the register resources to minimize the movement in/out, and make the math flow. The FPU does not hold higher precision intermediate results.

    1 reply

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    August 3, 2017
    Posted on August 03, 2017 at 22:50

    Your CPU only has a single precision FPU, this is why it the double precision computations are being done in software, it is using the FPU registers as extra holding space.

    The FPU isn't inherently complicated, it only implements fairly basic math functionality which you can gleen from the opcode name. The cleverness with come from how you manage the register resources to minimize the movement in/out, and make the math flow. The FPU does not hold higher precision intermediate results.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    August 3, 2017
    Posted on August 03, 2017 at 22:52

    See FPU Check code in this thread

    https://community.st.com/0D50X00009XkYbhSAF

    https://community.st.com/0D50X00009XkYbhSAF#comment-151216

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..