PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

ARM Assembly Routine Needed

I need a tight routine in ARM assembly language that will divide a 64 bit signed number (in 2 registers) by a 32 bit signed number (in a single register), storing the quotient in one 32 bit register and the remainder in another.  I've got an idea on how to code this myself but if someone has any ideas or can find something on the web regarding division on the ARM, that would be helpful.

BTW, the ARM doesn't have a divide instruction.  Anytime you perform a divide it must go to a library call.  That's gotta hurt.

Thanks!