* 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:
parent
04612c69eb
commit
cf4bfdb2f8
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue