diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-05-23 12:17:08 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-05-23 12:17:08 +0000 |
commit | 6efad6fd85b2326142939b57f8720341031f656c (patch) | |
tree | 9cee2628fe7bfa4c848d3d3dcb3bd5819ff1bbda | |
parent | 2bd978bdb8775df95863c17006a05c35c510f89e (diff) | |
download | ffmpeg-6efad6fd85b2326142939b57f8720341031f656c.tar.gz |
* align the source initialy address
Originally committed as revision 567 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/i386/dsputil_mmx.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 7bc04054ba..483e19a247 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -1107,18 +1107,20 @@ int main(int argc, char* argv[]) 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 |