Fix for SSE check in case -std=c99 hasn't been defined beforehand

This commit is contained in:
Paul Sutton 2017-06-06 14:15:49 +01:00
parent eb5460174d
commit fd5502cfc9
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}