Commit 6efad6fd authored by Zdenek Kabelac's avatar Zdenek Kabelac

* align the source initialy address

Originally committed as revision 567 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2bd978bd
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment