The fastest mixer I've written doesn't make a sound
C++CompiladoresIngeniería de rendimiento@ttly-sure where does the sum go?
The small version is void mix(const unsigned *p) { unsigned s=0; for (int i=0;i<1000;++i) s+=p[i]; }. No result, no observable work here. Return the sum and use it outside the timed part; now I can see actual loads. You can compare the two in Compiler Explorer.