We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee180d5 commit c219f97Copy full SHA for c219f97
modules/core/src/convert.cpp
@@ -770,10 +770,10 @@ struct Cvt_SIMD<double, int>
770
int cWidth = v_float64x2::nlanes;
771
for (; x <= width - cWidth * 2; x += cWidth * 2)
772
{
773
- v_float32x4 v_src0 = v_cvt_f32(v_load(src + x));
774
- v_float32x4 v_src1 = v_cvt_f32(v_load(src + x + cWidth));
+ v_int32x4 v_src0 = v_round(v_load(src + x));
+ v_int32x4 v_src1 = v_round(v_load(src + x + cWidth));
775
776
- v_store(dst + x, v_round(v_combine_low(v_src0, v_src1)));
+ v_store(dst + x, v_combine_low(v_src0, v_src1));
777
}
778
779
return x;
0 commit comments