Skip to content

Commit 1fbf914

Browse files
committed
Merge pull request opencv#9176 from alalek:fix_nightly_builds
2 parents 09436df + 4bb4a34 commit 1fbf914

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

modules/core/src/convert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3678,7 +3678,7 @@ cvtScale_<short, int, float>( const short* src, size_t sstep,
36783678
if (CV_CPU_HAS_SUPPORT_AVX2)
36793679
{
36803680
opt_AVX2::cvtScale_s16s32f32Line_AVX2(src, dst, scale, shift, size.width);
3681-
return;
3681+
continue;
36823682
}
36833683
#endif
36843684
#if CV_SSE2

modules/imgproc/src/imgwarp.avx2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class resizeNNInvokerAVX4 :
125125
}
126126
}
127127
}
128+
_mm256_zeroupper();
128129
}
129130

130131
private:
@@ -230,6 +231,7 @@ class resizeNNInvokerAVX2 :
230231
}
231232
}
232233
}
234+
_mm256_zeroupper();
233235
}
234236

235237
private:

modules/imgproc/src/imgwarp.sse4_1.cpp

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -387,19 +387,19 @@ class WarpPerspectiveLine_SSE4_Impl: public WarpPerspectiveLine_SSE4
387387
public:
388388
WarpPerspectiveLine_SSE4_Impl(const double *M)
389389
{
390-
v_M0 = _mm_set1_pd(M[0]);
391-
v_M3 = _mm_set1_pd(M[3]);
392-
v_M6 = _mm_set1_pd(M[6]);
393-
v_intmax = _mm_set1_pd((double)INT_MAX);
394-
v_intmin = _mm_set1_pd((double)INT_MIN);
395-
v_2 = _mm_set1_pd(2);
396-
v_zero = _mm_setzero_pd();
397-
v_1 = _mm_set1_pd(1);
398-
v_its = _mm_set1_pd(INTER_TAB_SIZE);
399-
v_itsi1 = _mm_set1_epi32(INTER_TAB_SIZE - 1);
390+
CV_UNUSED(M);
400391
}
401392
virtual void processNN(const double *M, short* xy, double X0, double Y0, double W0, int bw)
402393
{
394+
const __m128d v_M0 = _mm_set1_pd(M[0]);
395+
const __m128d v_M3 = _mm_set1_pd(M[3]);
396+
const __m128d v_M6 = _mm_set1_pd(M[6]);
397+
const __m128d v_intmax = _mm_set1_pd((double)INT_MAX);
398+
const __m128d v_intmin = _mm_set1_pd((double)INT_MIN);
399+
const __m128d v_2 = _mm_set1_pd(2);
400+
const __m128d v_zero = _mm_setzero_pd();
401+
const __m128d v_1 = _mm_set1_pd(1);
402+
403403
int x1 = 0;
404404
__m128d v_X0d = _mm_set1_pd(X0);
405405
__m128d v_Y0d = _mm_set1_pd(Y0);
@@ -521,6 +521,16 @@ class WarpPerspectiveLine_SSE4_Impl: public WarpPerspectiveLine_SSE4
521521
}
522522
virtual void process(const double *M, short* xy, short* alpha, double X0, double Y0, double W0, int bw)
523523
{
524+
const __m128d v_M0 = _mm_set1_pd(M[0]);
525+
const __m128d v_M3 = _mm_set1_pd(M[3]);
526+
const __m128d v_M6 = _mm_set1_pd(M[6]);
527+
const __m128d v_intmax = _mm_set1_pd((double)INT_MAX);
528+
const __m128d v_intmin = _mm_set1_pd((double)INT_MIN);
529+
const __m128d v_2 = _mm_set1_pd(2);
530+
const __m128d v_zero = _mm_setzero_pd();
531+
const __m128d v_its = _mm_set1_pd(INTER_TAB_SIZE);
532+
const __m128i v_itsi1 = _mm_set1_epi32(INTER_TAB_SIZE - 1);
533+
524534
int x1 = 0;
525535

526536
__m128d v_X0d = _mm_set1_pd(X0);
@@ -656,17 +666,6 @@ class WarpPerspectiveLine_SSE4_Impl: public WarpPerspectiveLine_SSE4
656666
}
657667
}
658668
virtual ~WarpPerspectiveLine_SSE4_Impl() {};
659-
private:
660-
__m128d v_M0;
661-
__m128d v_M3;
662-
__m128d v_M6;
663-
__m128d v_intmax;
664-
__m128d v_intmin;
665-
__m128d v_2,
666-
v_zero,
667-
v_1,
668-
v_its;
669-
__m128i v_itsi1;
670669
};
671670

672671
Ptr<WarpPerspectiveLine_SSE4> WarpPerspectiveLine_SSE4::getImpl(const double *M)

0 commit comments

Comments
 (0)