comparison dct-test.c @ 6533:b4c000318ed4 libavcodec

Set mm_flags in dct-test to fix floating math. Patch by Alexander Strange \astrange ithinksw com/
author benoit
date Tue, 25 Mar 2008 14:34:27 +0000
parents 7f9e2b5893fc
children d90bb7b51588
comparison
equal deleted inserted replaced
6532:8aafb712389e 6533:b4c000318ed4
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 mm_flags = mm_support();
534 535
535 for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i; 536 for(i=0;i<256;i++) cropTbl[i + MAX_NEG_CROP] = i;
536 for(i=0;i<MAX_NEG_CROP;i++) { 537 for(i=0;i<MAX_NEG_CROP;i++) {
537 cropTbl[i] = 0; 538 cropTbl[i] = 0;
538 cropTbl[i + MAX_NEG_CROP + 256] = 255; 539 cropTbl[i + MAX_NEG_CROP + 256] = 255;