video: Use memset instead of loop
PATCH 1/1 video: Use memset instead of loop
There is a optimized version of memset in u-boot available so use it instead of the hand written loop version.
Signed-off-by Matthias Weisser <[email protected]>
--- drivers/video/mb86r0xgdc.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/video/mb86r0xgdc.c +1 -2
@@ -77,8 +77,7 @@ static void dsp_init(struct mb86r0x_gdc_dsp *dsp, char *modestr, }/* Fill memory with white */ -for (i =0 ; i < var_mode.xres * var_mode.yres /2 ; i++) - *videomem++ =0xFFFFFFFF ; +memset (videomem,0xFF , var_mode.xres * var_mode.yres *2 ); mb86r0x.winSizeX = var_mode.xres; mb86r0x.winSizeY = var_mode.yres;
Signature · 1 line
1.7.0.4
PATCH 1/1 video: Use memset instead of loop
Quoted 7 lines · On Wed, 29 Jun 2011 13:57:25 +0200 Matthias Weisser <[email protected]> wrote:
There is a optimized version of memset in u-boot available so use it instead of the hand written loop version.
Signed-off-by Matthias Weisser <[email protected]>--- drivers/video/mb86r0xgdc.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
applied to u-boot-video/master. Thanks!
Anatolij