From eeef426b8399ad39dfc759352a6e7b0348a047d1 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 5 Jan 2007 01:19:56 +0000 Subject: Added more Win64 support --- ptw32_InterlockedCompareExchange.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ptw32_InterlockedCompareExchange.c') 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 -- cgit v1.2.3