Maarten Lankhorst m.b.lankhorst@gmail.com writes:
Fix the definitions in winbase.h, and the inline assembly :)
There are still several problems with your assembly, and I don't understand why you want to reinvent the wheel when we have a perfectly fine interlocked_cmpxchg64 implementation already.