* winbase.h (ilockincr): Add more neverending changes from the inexplicable

world of gcc asm constraint magic.  Should stop random crashes.
(ilockdecr): Ditto.
This commit is contained in:
Christopher Faylor 2004-06-04 23:55:44 +00:00
parent 04612c69eb
commit cf4bfdb2f8
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2004-06-04 Christopher Faylor <cgf@alum.bu.edu>
* winbase.h (ilockincr): Add more neverending changes from the
inexplicable world of gcc asm constraint magic. Should stop random
crashes.
(ilockdecr): Ditto.
2004-06-03 Christopher Faylor <cgf@alum.bu.edu>
* autoload.cc (IsDosDeviceName_U): Define.

View File

@ -19,7 +19,7 @@ ilockincr (long *m)
movl $1,%0\n\
lock xadd %0,%1\n\
inc %0\n\
": "=a" (__res), "=m" (*m): "m" (m): "cc");
": "=r" (__res), "=m" (*m): "m" (*m): "cc");
return __res;
}
@ -31,7 +31,7 @@ ilockdecr (long *m)
movl $0xffffffff,%0\n\
lock xadd %0,%1\n\
dec %0\n\
": "=a" (__res), "=m" (*m): "m" (m): "cc");
": "=r" (__res), "=m" (*m): "m" (*m): "cc");
return __res;
}