Loop unrolling (fixes vectorization issues on some platforms)