i386 and InterlockedIncrement inline asm

Danny Smith danny_r_smith_2001@yahoo.co.nz
Fri Jan 24 21:44:00 GMT 2003


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?



More information about the Cygwin-developers mailing list