Skip to content

Commit 666ec5b

Browse files
committed
Merge pull request #1380 from woodychow:simplify_sift_avx2
2 parents cff9257 + b5340f6 commit 666ec5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/xfeatures2d/src/sift.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static float calcOrientationHist( const Mat& img, Point pt, int radius,
378378
float CV_DECL_ALIGNED(32) w_mul_mag_buf[8];
379379
for ( ; k <= len - 8; k+=8 )
380380
{
381-
__m256i __bin = _mm256_cvtps_epi32(_mm256_round_ps(_mm256_mul_ps(__nd360, _mm256_loadu_ps(&Ori[k])), _MM_FROUND_TO_NEAREST_INT |_MM_FROUND_NO_EXC));
381+
__m256i __bin = _mm256_cvtps_epi32(_mm256_mul_ps(__nd360, _mm256_loadu_ps(&Ori[k])));
382382

383383
__bin = _mm256_sub_epi32(__bin, _mm256_andnot_si256(_mm256_cmpgt_epi32(__n, __bin), __n));
384384
__bin = _mm256_add_epi32(__bin, _mm256_and_si256(__n, _mm256_cmpgt_epi32(_mm256_setzero_si256(), __bin)));

0 commit comments

Comments
 (0)