On Tue, 26 Apr 2011, Michael Hope wrote:
Yip, so the compiler spots these two lines: Ndiv = target / source; Nmod = target % source;
and turns them into Ndiv, Nmod = __aeabi_uldivmod(target, source)
Why would gcc do that? All four variables involved here are of type unsigned int, no unsigned long long. Seems to me that __aeabi_uidivmod should have been used here instead.
Nicolas