News for hackers. Stuff that matters.
Re:When static makes your C code 10 times faster by why_only_15 on Sunday July 04, 2021 @05:21PM (#27732717)
Interestingly GCC will still optimize the loop function even if you have code that modifies the modulus. https://godbolt.org/z/EE9PnrY7s
Re:When static makes your C code 10 times faster by colonwqbang on Sunday July 04, 2021 @07:22PM (#27733423)
That code is invalid, it would give a compiler warning and possibly a runtime exception.