Run Nindent on com32/lib/sys/vesa/fill.h
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:26 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:26 +0000 (15:10 -0700)
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>
com32/lib/sys/vesa/fill.h

index 63ca577..5a43c72 100644 (file)
@@ -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 */