Maarten Lankhorst m.b.lankhorst@gmail.com writes:
+extern inline LONG WINAPI InterlockedCompareExchange64( LONG64 volatile *dest, LONG64 xchg, LONG64 compare ); +extern inline LONG WINAPI InterlockedCompareExchange64( LONG64 volatile *dest, LONG64 xchg, LONG64 compare ) +{
- LONG64 ret;
- __asm__ __volatile__( "lock; cmpxchg8b (%1)"
: "=a" (ret) : "r" (dest), "r" (xchg), "0" (compare) : "memory" );
- return ret;
+}
This can't possibly work.