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

Code for integer division on Cortex-A8?

Hi all,

when I wrote a C code with division operation the compiler is generating some library calls.....when I tried to see the equivalent code for those function calls...I'm unable to reach there (may be because they arm library SW routines)...I cant use those SW routine calls...I can embed the equivalent code in my program( in assembly code). Form where I can get the Equivalent codes for division SW routines....I need codes for 32-bit/32-bit ,32-bit/16-bit & 16-bit/16-bit divisions....

Thanks in advance....

Parents
  • Chris Shore wrote:

     

    Thanks for your reply. I agree that it isn't always that simple. Many don't realise, for instance, that ASR doesn't exactly replace integer division because it doesn't round properly.

    Though to be honest I think floored division is superior to truncated division, especially with regard to the associated mod operator. But yes, the difference is something to be aware of.

Reply
  • Chris Shore wrote:

     

    Thanks for your reply. I agree that it isn't always that simple. Many don't realise, for instance, that ASR doesn't exactly replace integer division because it doesn't round properly.

    Though to be honest I think floored division is superior to truncated division, especially with regard to the associated mod operator. But yes, the difference is something to be aware of.

Children
No data