diff --git a/cmake/modules/FindSSE.cmake b/cmake/modules/FindSSE.cmake index 959022fa7..30be8a206 100644 --- a/cmake/modules/FindSSE.cmake +++ b/cmake/modules/FindSSE.cmake @@ -49,7 +49,8 @@ if (ENABLE_SSE) b = _mm256_loadu_ps( src ); c = _mm256_add_ps( a, b ); _mm256_storeu_ps( dst, c ); - for( int i = 0; i < 8; i++ ){ + int i = 0; + for( i = 0; i < 8; i++ ){ if( ( src[i] + src[i] ) != dst[i] ){ return -1; } @@ -82,7 +83,8 @@ if (ENABLE_SSE) b = _mm256_loadu_si256( (__m256i*)src ); c = _mm256_add_epi32( a, b ); _mm256_storeu_si256( (__m256i*)dst, c ); - for( int i = 0; i < 8; i++ ){ + int i = 0; + for( i = 0; i < 8; i++ ){ if( ( src[i] + src[i] ) != dst[i] ){ return -1; }