From c8a065fce0937a40a0f050c1c8b19ad0700a7625 Mon Sep 17 00:00:00 2001 From: iovar Date: Tue, 7 Nov 2006 08:55:56 +0000 Subject: Loops in comparing-caching blocks are made with incrementing pointers git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@150 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- rMD-exp/src/cache_frame.c | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'rMD-exp') diff --git a/rMD-exp/src/cache_frame.c b/rMD-exp/src/cache_frame.c index d845367..c100505 100644 --- a/rMD-exp/src/cache_frame.c +++ b/rMD-exp/src/cache_frame.c @@ -31,12 +31,18 @@ int CompareBlocks(unsigned char *incoming,unsigned char *old,int blockno,int wid int j,i, block_i=blockno/divisor,//place on the grid block_k=blockno%divisor; + register unsigned char *incoming_reg=&(incoming[block_i*(width*height/divisor)+block_k*width/divisor]), + *old_reg=&(old[block_i*(width*height/divisor)+block_k*width/divisor]); + + for(j=0;j