This sounds reasonable. The compiler is doing things on your behalf. Small changes can have radical changes in the nature of the meaning. The type of instructions required for uint8_t vs uint16_t can be small or large. Inlining may increase the code size but the benefit is small relative to the function call. For example if the code was inlined without function call. I am including loop unrolling here.
Statistics: Posted by dthacher — Sat Oct 12, 2024 11:20 pm