summaryrefslogtreecommitdiffstats
path: root/compat/atomics/gcc/stdatomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/atomics/gcc/stdatomic.h')
-rw-r--r--compat/atomics/gcc/stdatomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/atomics/gcc/stdatomic.h b/compat/atomics/gcc/stdatomic.h
index 2b64687..e13ed0e 100644
--- a/compat/atomics/gcc/stdatomic.h
+++ b/compat/atomics/gcc/stdatomic.h
@@ -147,10 +147,10 @@ do { \
atomic_fetch_or(object, operand)
#define atomic_fetch_xor(object, operand) \
- __sync_fetch_and_sub(object, operand)
+ __sync_fetch_and_xor(object, operand)
#define atomic_fetch_xor_explicit(object, operand, order) \
- atomic_fetch_sub(object, operand)
+ atomic_fetch_xor(object, operand)
#define atomic_fetch_and(object, operand) \
__sync_fetch_and_and(object, operand)
OpenPOWER on IntegriCloud