projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d50a8f4
)
video: Use memset instead of loop
author
Matthias Weisser
<weisserm@arcor.de>
Wed, 29 Jun 2011 11:57:25 +0000
(13:57 +0200)
committer
Anatolij Gustschin
<agust@denx.de>
Tue, 2 Aug 2011 20:42:02 +0000
(22:42 +0200)
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 <weisserm@arcor.de>
drivers/video/mb86r0xgdc.c
patch
|
blob
|
history
diff --git
a/drivers/video/mb86r0xgdc.c
b/drivers/video/mb86r0xgdc.c
index 3bdc1db61d6e0fce5f78bc43b1853733bb2b4e93..5425c9daddc6dcf941b878475bdfc154337b0f04 100644
(file)
--- a/
drivers/video/mb86r0xgdc.c
+++ b/
drivers/video/mb86r0xgdc.c
@@
-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;