This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

48 Bit root using long or double

Hello,
We are thinking about switching from 8051 to Cortex M3. At the moment everything is written in assembler. Now I simply would like to know, how many assembler statements a Cortex M3 CPU will take to evaluate a square root from a 48 Bit integer value.
Is this (square root of a 48 Bit integer) included in a math library and a nobrainer or is only floating point supported.
I am new and just evaluating, what the switch means for us, so I would highly appreciate to get an answer to this question.

Thanks a lot.

Uwe Renschler

Parents
  • Nice to hear that a fixed point sqrt is trivial.
    I hope that it is also trivial to get the answer to my question: How many assembler statements are executed from a Cortex M3 CPU to figure out the square root of a 48 Bit integer value ? (min, max values if variable)
    What I read so far, is that the library could be used. And that is really trivial. But I don t know, what the library looks like and the 48 Bit square root is in our application performance critical. (At the moment we have implemented it using a 128 Entry lookup table and it takes between 40 and 60 8051 assembler statements).
    The same like in the brackets before would I like to know, for the Cortex M3 with the standard math lib.

Reply
  • Nice to hear that a fixed point sqrt is trivial.
    I hope that it is also trivial to get the answer to my question: How many assembler statements are executed from a Cortex M3 CPU to figure out the square root of a 48 Bit integer value ? (min, max values if variable)
    What I read so far, is that the library could be used. And that is really trivial. But I don t know, what the library looks like and the 48 Bit square root is in our application performance critical. (At the moment we have implemented it using a 128 Entry lookup table and it takes between 40 and 60 8051 assembler statements).
    The same like in the brackets before would I like to know, for the Cortex M3 with the standard math lib.

Children