diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-14 05:06:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-14 05:06:59 +0000 |
commit | ba88622498adc2939b747b3f14f2713926631f7e (patch) | |
tree | 87c4fc975ec3bdd0919ffdf5230101629f882786 /winsup/cygwin/string.h | |
parent | 8bce0d723c50924b908dca1467037c8008e872be (diff) | |
download | cygnal-ba88622498adc2939b747b3f14f2713926631f7e.tar.gz cygnal-ba88622498adc2939b747b3f14f2713926631f7e.tar.bz2 cygnal-ba88622498adc2939b747b3f14f2713926631f7e.zip |
* 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.h | 18 |
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; |