unroll
Tell gcc to specifically unroll a loop
GCC gives you a few different ways of handling this: Use #pragma directives, like #pragma GCC optimize (“string”…), as seen in the GCC docs. Note that the pragma makes the optimizations global for the remaining functions. If you used #pragma push_options and pop_options macros cleverly, you could probably define this around just one function like … Read more