comparison libvo/vo_svga.c @ 23457:a124f3abc1ec

Replace implicit use of fast_memcpy via macro by explicit use to allow for future optimization.
author reimar
date Tue, 05 Jun 2007 14:27:54 +0000
parents 71b3e04d0555
children 797799e53a68
comparison
equal deleted inserted replaced
23456:1582297cc3d2 23457:a124f3abc1ec
204 if( mp_msg_test(MSGT_VO,MSGL_DBG3) ) 204 if( mp_msg_test(MSGT_VO,MSGL_DBG3) )
205 mp_msg(MSGT_VO,MSGL_DBG3, "vo_svga: clearing box %d,%d - %d,%d with memset\n",x,y,w,h); 205 mp_msg(MSGT_VO,MSGL_DBG3, "vo_svga: clearing box %d,%d - %d,%d with memset\n",x,y,w,h);
206 rgbplane=PageStore[0].vbase + (y*mode_stride) + (x*modeinfo->bytesperpixel); 206 rgbplane=PageStore[0].vbase + (y*mode_stride) + (x*modeinfo->bytesperpixel);
207 for(i=0;i<h;i++){ 207 for(i=0;i<h;i++){
208 //i'm afraid that memcpy is better optimized than memset;) 208 //i'm afraid that memcpy is better optimized than memset;)
209 memcpy(rgbplane,zerobuf,w*modeinfo->bytesperpixel); 209 fast_memcpy(rgbplane,zerobuf,w*modeinfo->bytesperpixel);
210 // memset(rgbplane,0,w*modeinfo->bytesperpixel); 210 // memset(rgbplane,0,w*modeinfo->bytesperpixel);
211 rgbplane+=mode_stride; 211 rgbplane+=mode_stride;
212 } 212 }
213 return; 213 return;
214 } 214 }