aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/vesa
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:26 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:26 -0700
commiteaab1a79d5cee034e03204c5df5cc414d2631d8e (patch)
treeeac225699572c734c8969e02928c7af92f330db0 /com32/lib/sys/vesa
parent5013c5588438911abe65d75cadfc3285d164c93f (diff)
downloadsyslinux-eaab1a79d5cee034e03204c5df5cc414d2631d8e.tar.gz
syslinux-eaab1a79d5cee034e03204c5df5cc414d2631d8e.tar.xz
syslinux-eaab1a79d5cee034e03204c5df5cc414d2631d8e.zip
Run Nindent on com32/lib/sys/vesa/fill.h
Automatically reformat com32/lib/sys/vesa/fill.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/sys/vesa')
-rw-r--r--com32/lib/sys/vesa/fill.h47
1 files changed, 22 insertions, 25 deletions
diff --git a/com32/lib/sys/vesa/fill.h b/com32/lib/sys/vesa/fill.h
index 63ca577b..5a43c728 100644
--- a/com32/lib/sys/vesa/fill.h
+++ b/com32/lib/sys/vesa/fill.h
@@ -35,32 +35,29 @@ static inline struct vesa_char *vesacon_fill(struct vesa_char *ptr,
struct vesa_char fill,
unsigned int count)
{
- switch (sizeof(struct vesa_char)) {
- case 1:
- asm volatile("rep; stosb"
- : "+D" (ptr), "+c" (count)
- : "a" (fill)
- : "memory");
- break;
- case 2:
- asm volatile("rep; stosw"
- : "+D" (ptr), "+c" (count)
- : "a" (fill)
- : "memory");
- break;
- case 4:
- asm volatile("rep; stosl"
- : "+D" (ptr), "+c" (count)
- : "a" (fill)
- : "memory");
- break;
- default:
- while (count--)
- *ptr++ = fill;
- break;
- }
+ switch (sizeof(struct vesa_char)) {
+ case 1:
+ asm volatile ("rep; stosb":"+D" (ptr), "+c"(count)
+ :"a"(fill)
+ :"memory");
+ break;
+ case 2:
+ asm volatile ("rep; stosw":"+D" (ptr), "+c"(count)
+ :"a"(fill)
+ :"memory");
+ break;
+ case 4:
+ asm volatile ("rep; stosl":"+D" (ptr), "+c"(count)
+ :"a"(fill)
+ :"memory");
+ break;
+ default:
+ while (count--)
+ *ptr++ = fill;
+ break;
+ }
- return ptr;
+ return ptr;
}
#endif /* LIB_SYS_VESA_FILL_H */