summaryrefslogtreecommitdiff
path: root/linux/dev/include/asm-i386/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/dev/include/asm-i386/string.h')
-rw-r--r--linux/dev/include/asm-i386/string.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/dev/include/asm-i386/string.h b/linux/dev/include/asm-i386/string.h
index 8417d4a..bdb7545 100644
--- a/linux/dev/include/asm-i386/string.h
+++ b/linux/dev/include/asm-i386/string.h
@@ -473,11 +473,11 @@ extern inline void * memscan(void * addr, int c, size_t size)
{
if (!size)
return addr;
- __asm__("cld
- repnz; scasb
- jnz 1f
- dec %%edi
-1: "
+ __asm__("cld\n"
+ "repnz; scasb\n"
+ "jnz 1f\n"
+ "dec %%edi\n"
+ "1:\n"
: "=D" (addr), "=c" (size)
: "0" (addr), "1" (size), "a" (c));
return addr;