I suggest to use the MixHelper class for loops like these and add an implementation if neccessary. This tightens code and allows for further central optimizations later (like adding instruction set specific implementations (SSE/AVX etc.)).