From: PJ Naughter on 8 Feb 2007 11:46 On Wed, 07 Feb 2007 09:47:47 +0100, Joerg Wagner <wagner(a)cs.tu-berlin.de> wrote: >Hello, > >various sources speak of early Opterons missing the cmpxchg16 instruction (in fact, I have one, but it's running Linux). >Will Win64 emulate that instruction on these systems (trapping the unknown opcode and use a spin lock) ? >As the documentation of the VC8 compiler tells me, VC++ will emit a direct opcode, whenever I use InterlockedCompareExchange128, so I am in sorrow if my code will still work on these exotic machines ... > >Any help appreciated ! > >Joerg Would using the function Win32 IsProcessorFeaturePresent be any good to you? Regards, PJ Naughter Naughter Software Mail: pjna at naughter.com Web: www.naughter.com Hotmail/MSN Messenger: pjnaughter at hotmail.com It is finally on the shelves... the book from Joseph Gama and I: http://www.amazon.com/Super-SQL-Server-Systems-Performance/dp/0976157322 |