4 ms·
I tried recently to optimise a loop looking for a value in a small array of short integers (8 elements), not so easy, there are so many choices: tight loop (a p
by renox 7y ago
I tried recently to optimise a loop looking for a value in a small array of short integers (8 elements), not so easy, there are so many choices: tight loop (a priori not an optimal choice but use only one instruction cache line), unrolled loop, using cmovs, SIMD?