https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98299
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The big question is if it is an optimization or not. Perhaps the user wrote it that way because n is always or most of the time small that it will be faster than doing modulo.