1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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.

Originally committed as revision 13957 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alexander Strange 2008-06-24 23:51:17 +00:00
parent 8bf61f5ba9
commit f67a10cd0c
3 changed files with 11 additions and 0 deletions

View File

@ -531,7 +531,10 @@ int main(int argc, char **argv)
init_fdct(); init_fdct();
idct_mmx_init(); idct_mmx_init();
#ifndef mm_flags
mm_flags = mm_support(); 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++) {

View File

@ -578,6 +578,11 @@ extern int mm_flags;
#define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v) #define DECLARE_ALIGNED_8(t, v) DECLARE_ALIGNED(16, t, v)
#define STRIDE_ALIGN 16 #define STRIDE_ALIGN 16
#else
#define mm_flags 0
#define mm_support() 0
#endif #endif
#ifndef DECLARE_ALIGNED_8 #ifndef DECLARE_ALIGNED_8

View File

@ -186,7 +186,10 @@ int main(int argc, char **argv)
MDCTContext m1, *m = &m1; MDCTContext m1, *m = &m1;
int fft_nbits, fft_size; int fft_nbits, fft_size;
#ifndef mm_flags
mm_flags = 0; mm_flags = 0;
#endif
fft_nbits = 9; fft_nbits = 9;
for(;;) { for(;;) {
c = getopt(argc, argv, "hsimn:"); c = getopt(argc, argv, "hsimn:");