From d3284c7d3ec2253b9345b3d60364354a3cc4037e Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 12 Mar 2011 02:49:32 +0000 Subject: Use C ++/-- operators --- implement.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'implement.h') diff --git a/implement.h b/implement.h index 1cd24f2..b210bc5 100644 --- a/implement.h +++ b/implement.h @@ -755,7 +755,7 @@ extern "C" :"+r" (_temp) \ :"r" (location) \ :"memory", "cc"); \ - _temp + 1; \ + ++_temp; \ }) # define PTW32_INTERLOCKED_DECREMENT(location) \ ({ \ @@ -767,7 +767,7 @@ extern "C" :"+r" (_temp) \ :"r" (location) \ :"memory", "cc"); \ - _temp - 1; \ + --_temp; \ }) # if defined(_WIN64) # define PTW32_INTERLOCKED_COMPARE_EXCHANGE64(location, value, comparand) \ @@ -815,7 +815,7 @@ extern "C" :"+r" (_temp) \ :"r" (location) \ :"memory", "cc"); \ - _temp + 1; \ + ++_temp; \ }) # define PTW32_INTERLOCKED_DECREMENT64(location) \ ({ \ @@ -827,7 +827,7 @@ extern "C" :"+r" (_temp) \ :"r" (location) \ :"memory", "cc"); \ - _temp - 1; \ + --_temp; \ }) # define PTW32_INTERLOCKED_COMPARE_EXCHANGE_PTR(location, value, comparand) \ PTW32_INTERLOCKED_COMPARE_EXCHANGE64(location, (size_t)value, (size_t)comparand) -- cgit v1.2.3