Failure to optimise (a/b) and (a%b) into single __aeabi_idivmod call

2013-06-05 Thread Kugan
Hi, I am looking at best approach for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43721 - Failure to optimise (a/b) and (a%b) into single __aeabi_idivmod call in ARM architecture In sumary, the following c code results in __aeabi_idivmod() call and one __aeabi_idiv() call even though the for

Re: Failure to optimise (a/b) and (a%b) into single __aeabi_idivmod call

2013-06-05 Thread Matthew Gretton-Dann
Kugan, I don't have the source code to hand but how are the sin()/cos()->sincos() optimizations handled? Thanks, Matt On 5 June 2013 11:44, Kugan wrote: > Hi, > > I am looking at best approach for > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43721 - Failure to optimise > (a/b) and (a%b) into