diff --git a/x86.h b/x86.h
index 8db4dc9a54158398bb4391e9b3b3841124ae86dc..5961d67a2deb3a21a66f899e323c84b56e3ab723 100644
--- a/x86.h
+++ b/x86.h
@@ -12,10 +12,10 @@ inb(ushort port)
 static inline void
 insl(int port, void *addr, int cnt)
 {
-  asm volatile("cld\n\trepne\n\tinsl"     :
-                   "=D" (addr), "=c" (cnt)    :
-                   "d" (port), "0" (addr), "1" (cnt)  :
-                   "memory", "cc");
+  asm volatile("cld; repne insl" :
+               "=D" (addr), "=c" (cnt) :
+               "d" (port), "0" (addr), "1" (cnt) :
+               "memory", "cc");
 }
 
 static inline void
@@ -33,10 +33,10 @@ outw(ushort port, ushort data)
 static inline void
 outsl(int port, const void *addr, int cnt)
 {
-  asm volatile("cld\n\trepne\n\toutsl"    :
-                   "=S" (addr), "=c" (cnt)    :
-                   "d" (port), "0" (addr), "1" (cnt)  :
-                   "cc");
+  asm volatile("cld; repne outsl" :
+               "=S" (addr), "=c" (cnt) :
+               "d" (port), "0" (addr), "1" (cnt) :
+               "cc");
 }
 
 static inline uint