[FFmpeg-devel] [PATCH 12/13] avutil/tests/pixelutils: Add emms_c() after SIMD use before calling libc (malloc/free) code
Michael Niedermayer
michael at niedermayer.cc
Sat Oct 22 22:02:10 EEST 2016
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavutil/tests/pixelutils.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavutil/tests/pixelutils.c b/libavutil/tests/pixelutils.c
index ec4dc8f..fbb66e5 100644
--- a/libavutil/tests/pixelutils.c
+++ b/libavutil/tests/pixelutils.c
@@ -67,6 +67,8 @@ static int run_test(const char *test,
ret = r;
}
}
+ emms_c();
+
return ret;
}
@@ -140,6 +142,7 @@ int main(void)
RANDOM_INIT(buf1, size1);
RANDOM_INIT(buf2, size2);
ret = run_single_test("small", buf1, 1<<i, buf2, 1<<i, align, i);
+ emms_c();
if (ret < 0)
goto end;
}
--
2.10.1
More information about the ffmpeg-devel
mailing list