Re: kernel32: Add support for InterlockedCompareExchange64, try 2

2010-02-05 Thread Maarten Lankhorst
Hello Alexandre, Alexandre Julliard wrote: Maarten Lankhorst 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 interloc

Re: kernel32: Add support for InterlockedCompareExchange64, try 2

2010-02-05 Thread Alexandre Julliard
Maarten Lankhorst 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. -- Alexandre

Re: kernel32: Add support for InterlockedCompareExchange64

2010-02-04 Thread Alexandre Julliard
Maarten Lankhorst 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__ _