summaryrefslogtreecommitdiff
path: root/ptw32_InterlockedCompareExchange.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-04-26 02:41:11 +0000
committerrpj <rpj>2005-04-26 02:41:11 +0000
commit29d3e89b71281c626f151a1585a40d9d2448123b (patch)
treec74208412856a7ec52b4ba24650c697bd78b5ab9 /ptw32_InterlockedCompareExchange.c
parent20f8973d1ae941b0727f343c7f646b0eeb74087a (diff)
''
Diffstat (limited to 'ptw32_InterlockedCompareExchange.c')
-rw-r--r--ptw32_InterlockedCompareExchange.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ptw32_InterlockedCompareExchange.c b/ptw32_InterlockedCompareExchange.c
index 5ffc754..0094635 100644
--- a/ptw32_InterlockedCompareExchange.c
+++ b/ptw32_InterlockedCompareExchange.c
@@ -75,7 +75,6 @@ ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location,
#if defined(_MSC_VER) || defined(__WATCOMC__) || (defined(__BORLANDC__) && defined(HAVE_TASM32))
#define HAVE_INLINABLE_INTERLOCKED_CMPXCHG
-
{
_asm {
PUSH ecx
@@ -86,7 +85,7 @@ ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location,
LOCK CMPXCHG dword ptr [ecx],edx
MOV dword ptr [result], eax
POP edx
- POP ecx
+ POP ecx
}
}
else
@@ -100,7 +99,7 @@ ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location,
CMPXCHG dword ptr [ecx],edx
MOV dword ptr [result], eax
POP edx
- POP ecx
+ POP ecx
}
}