From eaab1a79d5cee034e03204c5df5cc414d2631d8e Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:26 -0700 Subject: [PATCH] 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 --- com32/lib/sys/vesa/fill.h | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/com32/lib/sys/vesa/fill.h b/com32/lib/sys/vesa/fill.h index 63ca577..5a43c72 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 */ -- 2.7.4