SSE instructions and correctly optimized pure C version