I'm trying to do a 64-bit divide operation in C using Cortex-M3.
Is there a reference of optimized assembly code for same or recommended approach?
Mani77 said:in C
so just use (u)int64_t ?
Thanks Andy. I was looking for if there is any different version of 64 bit divider using Assembly instruction which will take less number of execution cycles.
as it's directly implemented by the compiler, I think you can safely assume that it will be well optimised ... ?
Sure. I just was wondering if there any variations or some switches to tweak it in terms of performance.
Thanks for the help.
The compiler's divide is optimized for the general use case. If you need a special divide, you are free to write your own.
View all questions in Cortex-M / M-Profile forum