Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-12-14 08:06:59 +0300
committerChristopher Faylor <me@cgf.cx>2002-12-14 08:06:59 +0300
commitba88622498adc2939b747b3f14f2713926631f7e (patch)
tree87c4fc975ec3bdd0919ffdf5230101629f882786 /winsup/cygwin/string.h
parent8bce0d723c50924b908dca1467037c8008e872be (diff)
* winbase.h: Turn on inline versions of Interlocked* by default.
* winbase.h: Fixup inline asm functions. Add ilockcmpexch.
Diffstat (limited to 'winsup/cygwin/string.h')
-rw-r--r--winsup/cygwin/string.h18
1 files changed, 9 insertions, 9 deletions
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;