summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-12 02:49:32 +0000
committerrpj <rpj>2011-03-12 02:49:32 +0000
commitd3284c7d3ec2253b9345b3d60364354a3cc4037e (patch)
tree7cf89f75bc2daf25d8f8af9d63e0d677ee579330 /implement.h
parent7e545e5b00f8803e74405aa22e7704da8aae8e09 (diff)
Use C ++/-- operators
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h8
1 files changed, 4 insertions, 4 deletions
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)