Commit f23f5873 authored by astrange's avatar astrange

Use a local variable instead of mm_flags in dct-test.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13967 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6fa12358
...@@ -528,14 +528,11 @@ int main(int argc, char **argv) ...@@ -528,14 +528,11 @@ int main(int argc, char **argv)
int test_idct = 0, test_248_dct = 0; int test_idct = 0, test_248_dct = 0;
int c,i; int c,i;
int test=1; int test=1;
int cpu_flags = mm_support();
init_fdct(); init_fdct();
idct_mmx_init(); idct_mmx_init();
#ifndef mm_flags
mm_flags = mm_support();
#endif
for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i;
for(i=0;i<MAX_NEG_CROP;i++) { for(i=0;i<MAX_NEG_CROP;i++) {
cropTbl[i] = 0; cropTbl[i] = 0;
...@@ -568,7 +565,7 @@ int main(int argc, char **argv) ...@@ -568,7 +565,7 @@ int main(int argc, char **argv)
idct248_error("SIMPLE-C", ff_simple_idct248_put); idct248_error("SIMPLE-C", ff_simple_idct248_put);
} else { } else {
for (i=0;algos[i].name;i++) for (i=0;algos[i].name;i++)
if (algos[i].is_idct == test_idct && !(~mm_flags & algos[i].mm_support)) { if (algos[i].is_idct == test_idct && !(~cpu_flags & algos[i].mm_support)) {
dct_error (algos[i].name, algos[i].is_idct, algos[i].func, algos[i].ref, algos[i].format, test); dct_error (algos[i].name, algos[i].is_idct, algos[i].func, algos[i].ref, algos[i].format, test);
} }
} }
......
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