[Info-vax] Anyone still around ? :-)

osuvman50 at gmail.com osuvman50 at gmail.com
Tue Oct 8 10:19:39 EDT 2019


I was considering making a post about the failure of the C compiler's optimizer
to recognize and optimize the pattern:

     choice = permutation % (CARDS_IN_DECK-i);
     permutation = permutation / (CARDS_IN_DECK-i);

but didn't think I'd get any constructive responses. (refactoring to eliminate a
divide makes the whole program run 18% faster on both alpha and IA64).



More information about the Info-vax mailing list