Commit dc7501e5 authored by Martin Storsjö's avatar Martin Storsjö

checkasm: Issue emms after benchmarking functions

The functions may not clean up properly after using MMX
registers. For the normal testing calls, the checkasm_checked_call
functions will do the cleanup (and check that functions that
should clean up do it as well), but when benchmarking functions
that don't clean up, we don't currently properly clean up at all.

This causes issues if a benchmarked function is followed by testing
of a function that is supposed to not clobber the MMX/FPU state but
doesn't touch it at all.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent beb62dac
......@@ -27,6 +27,7 @@
#include "config.h"
#include "libavutil/avstring.h"
#include "libavutil/cpu.h"
#include "libavutil/internal.h"
#include "libavutil/lfg.h"
#include "libavutil/timer.h"
......@@ -161,6 +162,7 @@ void checkasm_checked_call(void *func, ...);
tcount++;\
}\
}\
emms_c();\
checkasm_update_bench(tcount, tsum);\
}\
} while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment