optimization.
(ilockdecr): Ditto.
+2004-06-03 Christopher Faylor <me@cgf.cx>
+
+ * winbase.h (ilockincr): YA correction to ensure correct operation with
+ no optimization.
+ (ilockdecr): Ditto.
+
2004-06-03 Corinna Vinschen <corinna@vinschen.de>
* cygserver.h (CYGWIN_SERVER_VERSION_API): Bump.
register int __res;
__asm__ __volatile__ ("\n\
movl $1,%0\n\
- lock xadd %0,%1\n\
+ lock xadd %0,%2\n\
inc %0\n\
- ": "=a" (__res), "+m" (*m): : "cc");
+ ": "=a" (__res), "=m" (*m): "m" (m): "cc");
return __res;
}
register int __res;
__asm__ __volatile__ ("\n\
movl $0xffffffff,%0\n\
- lock xadd %0,%1\n\
+ lock xadd %0,%2\n\
dec %0\n\
- ": "=a" (__res), "+m" (*m): : "cc");
+ ": "=a" (__res), "=m" (*m): "m" (m): "cc");
return __res;
}