This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
i386 and InterlockedIncrement inline asm
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: cygwin-developers at cygwin dot com
- Date: Sat, 25 Jan 2003 08:44:26 +1100 (EST)
- Subject: i386 and InterlockedIncrement inline asm
Hello,
In cygwin/winbase.h, the InterlockedIncrement and InterlockedDecrement inline
replacement functions use the 'xadd' instruction. This insn is available on
i486 and upwards, but not on i386. I belive the same applies to cmpxchg
(Pentium has CMPXCHG, i486 has CMPXCHG486)
Although I haven't find any bug reports about running cygwin exes on i386 (nor
do I know of anyone with an i386 box to test), it could be a problem. Has
this potential problem been acknowledged anywhere?
Danny
http://movies.yahoo.com.au - Yahoo! Movies
- What's on at your local cinema?