# HG changeset patch # User kabi # Date 1022156228 0 # Node ID 040d86058c4aa0afa70ed58517d924cbd8b9209c # Parent ca1f2c0e44ef6a8c874aab9708d2981d03140d60 * align the source initialy address diff -r ca1f2c0e44ef -r 040d86058c4a i386/dsputil_mmx.c --- a/i386/dsputil_mmx.c Thu May 23 10:10:14 2002 +0000 +++ b/i386/dsputil_mmx.c Thu May 23 12:17:08 2002 +0000 @@ -1107,18 +1107,20 @@ volatile int v; int i; const int linesize = 720; - char bu[32768]; + char empty[32768]; uint64_t te, ts = rdtsc(); - char* im = bu; + char* im, *bu = empty; op_pixels_func fc = put_pixels_y2_mmx2; + bu += 32; + bu =(char*)(((long)bu) & ~0xf); // 16 bytes alignment + im = bu; for(i=0; i<1000000; i++){ fc(im, im + 1000, linesize, 16); - im += 16; // + im += 4; // if (im > bu + 10000) im = bu; } te = rdtsc(); printf("CPU Ticks: %7d\n", (int)(te - ts)); - fflush(stdout); } #endif