From ba88622498adc2939b747b3f14f2713926631f7e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 14 Dec 2002 05:06:59 +0000 Subject: * winbase.h: Turn on inline versions of Interlocked* by default. * winbase.h: Fixup inline asm functions. Add ilockcmpexch. --- winsup/cygwin/string.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'winsup/cygwin/string.h') diff --git a/winsup/cygwin/string.h b/winsup/cygwin/string.h index 778bb40ac..6e410249b 100644 --- a/winsup/cygwin/string.h +++ b/winsup/cygwin/string.h @@ -24,15 +24,15 @@ strchr (const char *s, int c) { register char * res; __asm__ __volatile__ ("\ - movb %%al,%%ah\n\ - 1: movb (%1),%%al\n\ - cmpb %%ah,%%al\n\ - je 2f\n\ - incl %1\n\ - testb %%al,%%al\n\ - jne 1b\n\ - xorl %1,%1\n\ - 2: movl %1,%0\n\ + movb %%al,%%ah\n\ +1: movb (%1),%%al\n\ + cmpb %%ah,%%al\n\ + je 2f\n\ + incl %1\n\ + testb %%al,%%al\n\ + jne 1b\n\ + xorl %1,%1\n\ +2: movl %1,%0\n\ ":"=a" (res), "=r" (s) :"0" (c), "1" (s)); return res; -- cgit v1.2.3