summaryrefslogtreecommitdiff
path: root/compat/atomics/gcc/stdatomic.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-04-02 00:57:17 -0300
committerJames Almer <jamrial@gmail.com>2017-04-02 00:57:17 -0300
commit7942907878dd4c263ba7431067c33ce6b5d53ceb (patch)
treead43093070195495a764fb907a1418fa1c0b71a8 /compat/atomics/gcc/stdatomic.h
parentcbd25029399873ef6ff2c7344efbfb0c74b12e37 (diff)
compat/atomics: fix atomic_fetch_xor
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 2b64687437..e13ed0e068 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)