summaryrefslogtreecommitdiffstats
path: root/compat
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
parentcbd25029399873ef6ff2c7344efbfb0c74b12e37 (diff)
downloadffmpeg-streaming-7942907878dd4c263ba7431067c33ce6b5d53ceb.zip
ffmpeg-streaming-7942907878dd4c263ba7431067c33ce6b5d53ceb.tar.gz
compat/atomics: fix atomic_fetch_xor
Diffstat (limited to 'compat')
-rw-r--r--compat/atomics/dummy/stdatomic.h2
-rw-r--r--compat/atomics/gcc/stdatomic.h4
-rw-r--r--compat/atomics/pthread/stdatomic.h2
-rw-r--r--compat/atomics/suncc/stdatomic.h2
-rw-r--r--compat/atomics/win32/stdatomic.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/compat/atomics/dummy/stdatomic.h b/compat/atomics/dummy/stdatomic.h
index c26f629..59d85f9 100644
--- a/compat/atomics/dummy/stdatomic.h
+++ b/compat/atomics/dummy/stdatomic.h
@@ -156,7 +156,7 @@ FETCH_MODIFY(and, &)
atomic_fetch_or(object, operand)
#define atomic_fetch_xor_explicit(object, operand, order) \
- atomic_fetch_sub(object, operand)
+ atomic_fetch_xor(object, operand)
#define atomic_fetch_and_explicit(object, operand, order) \
atomic_fetch_and(object, operand)
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)
diff --git a/compat/atomics/pthread/stdatomic.h b/compat/atomics/pthread/stdatomic.h
index 1b7278e..81a60f1 100644
--- a/compat/atomics/pthread/stdatomic.h
+++ b/compat/atomics/pthread/stdatomic.h
@@ -177,7 +177,7 @@ FETCH_MODIFY(and, &)
atomic_fetch_or(object, operand)
#define atomic_fetch_xor_explicit(object, operand, order) \
- atomic_fetch_sub(object, operand)
+ atomic_fetch_xor(object, operand)
#define atomic_fetch_and_explicit(object, operand, order) \
atomic_fetch_and(object, operand)
diff --git a/compat/atomics/suncc/stdatomic.h b/compat/atomics/suncc/stdatomic.h
index 119c2ba..4a864a4 100644
--- a/compat/atomics/suncc/stdatomic.h
+++ b/compat/atomics/suncc/stdatomic.h
@@ -166,7 +166,7 @@ static inline intptr_t atomic_fetch_and(intptr_t *object, intptr_t operand)
atomic_fetch_or(object, operand)
#define atomic_fetch_xor_explicit(object, operand, order) \
- atomic_fetch_sub(object, operand)
+ atomic_fetch_xor(object, operand)
#define atomic_fetch_and_explicit(object, operand, order) \
atomic_fetch_and(object, operand)
diff --git a/compat/atomics/win32/stdatomic.h b/compat/atomics/win32/stdatomic.h
index 4cbba9c..fa7ef51 100644
--- a/compat/atomics/win32/stdatomic.h
+++ b/compat/atomics/win32/stdatomic.h
@@ -159,7 +159,7 @@ static inline int atomic_compare_exchange_strong(intptr_t *object, intptr_t *exp
atomic_fetch_or(object, operand)
#define atomic_fetch_xor_explicit(object, operand, order) \
- atomic_fetch_sub(object, operand)
+ atomic_fetch_xor(object, operand)
#define atomic_fetch_and_explicit(object, operand, order) \
atomic_fetch_and(object, operand)
OpenPOWER on IntegriCloud