avutil/tests/lfg: Remove debugging start/stop timer
Fixes code with qemu ARM Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
a50ccbd240
commit
1d0bad421c
@ -104,15 +104,12 @@ int main(void)
|
|||||||
int x = 0;
|
int x = 0;
|
||||||
int i, j;
|
int i, j;
|
||||||
AVLFG state;
|
AVLFG state;
|
||||||
|
|
||||||
av_lfg_init(&state, 0xdeadbeef);
|
av_lfg_init(&state, 0xdeadbeef);
|
||||||
for (j = 0; j < 10000; j++) {
|
for (j = 0; j < 10000; j++) {
|
||||||
START_TIMER
|
|
||||||
for (i = 0; i < 624; i++) {
|
for (i = 0; i < 624; i++) {
|
||||||
//av_log(NULL, AV_LOG_ERROR, "%X\n", av_lfg_get(&state));
|
//av_log(NULL, AV_LOG_ERROR, "%X\n", av_lfg_get(&state));
|
||||||
x += av_lfg_get(&state);
|
x += av_lfg_get(&state);
|
||||||
}
|
}
|
||||||
STOP_TIMER("624 calls of av_lfg_get");
|
|
||||||
}
|
}
|
||||||
av_log(NULL, AV_LOG_ERROR, "final value:%X\n", x);
|
av_log(NULL, AV_LOG_ERROR, "final value:%X\n", x);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user