Mercurial > libavcodec.hg
comparison dct-test.c @ 7135:6bd6a2da306e libavcodec
Define mm_flags/support to be 0 on architectures where they don't exist.
Make sure we don't try to set them if that's the case.
This lets dct-test and fft-test build with --disable-mmx on x86, but not yet on ARM.
author | astrange |
---|---|
date | Tue, 24 Jun 2008 23:51:17 +0000 |
parents | 601509a430f7 |
children | 654f063dc099 |
comparison
equal
deleted
inserted
replaced
7134:1238746e1301 | 7135:6bd6a2da306e |
---|---|
529 int c,i; | 529 int c,i; |
530 int test=1; | 530 int test=1; |
531 | 531 |
532 init_fdct(); | 532 init_fdct(); |
533 idct_mmx_init(); | 533 idct_mmx_init(); |
534 | |
535 #ifndef mm_flags | |
534 mm_flags = mm_support(); | 536 mm_flags = mm_support(); |
537 #endif | |
535 | 538 |
536 for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; | 539 for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; |
537 for(i=0;i<MAX_NEG_CROP;i++) { | 540 for(i=0;i<MAX_NEG_CROP;i++) { |
538 cropTbl[i] = 0; | 541 cropTbl[i] = 0; |
539 cropTbl[i + MAX_NEG_CROP + 256] = 255; | 542 cropTbl[i + MAX_NEG_CROP + 256] = 255; |