diff options
author | rpj <rpj> | 2007-01-05 01:19:56 +0000 |
---|---|---|
committer | rpj <rpj> | 2007-01-05 01:19:56 +0000 |
commit | eeef426b8399ad39dfc759352a6e7b0348a047d1 (patch) | |
tree | 09565a10b3132311847c8fb4575313f9d645d476 /ptw32_InterlockedCompareExchange.c | |
parent | a7ed60cf396fcb8b0670e097dda24b1b0ec2e904 (diff) |
Added more Win64 support
Diffstat (limited to 'ptw32_InterlockedCompareExchange.c')
-rw-r--r-- | ptw32_InterlockedCompareExchange.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ptw32_InterlockedCompareExchange.c b/ptw32_InterlockedCompareExchange.c index 0094635..be39cd4 100644 --- a/ptw32_InterlockedCompareExchange.c +++ b/ptw32_InterlockedCompareExchange.c @@ -35,6 +35,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ +#ifndef _WIN64 + #include "pthread.h" #include "implement.h" @@ -250,8 +252,8 @@ L1: MOV eax,dword ptr [ecx] * FIXME! Need memory barriers for the MOV+CMPXCHG combo? * * Tests show that this routine has almost identical timing - * to Win32's InterlockedExchange(), which is much faster than - * using the an inlined 'xchg' instruction, so it's probably + * to Win32's InterlockedExchange(), and is much faster than + * using an inlined 'xchg' instruction, so Win32 is probably * doing something similar to this (on UP systems). */ __asm__ __volatile__ @@ -301,3 +303,5 @@ L1: MOV eax,dword ptr [ecx] #endif #endif + +#endif |