Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain BERTRAND <sylvain.bertrand@legeek.net>2021-09-20 22:26:31 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2021-10-05 00:58:36 +0300
commitf52aee04fbd711cddab23d0aa9b196e9c963e7b8 (patch)
tree8fc6a629db6497100f92183bca9cf29631240594 /include
parenta67124703f52addd18d122b488525b2561a812de (diff)
Fix compilation when using the gcc atomic wrappers
Diffstat (limited to 'include')
-rw-r--r--include/compat/gcc/stdatomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/gcc/stdatomic.h b/include/compat/gcc/stdatomic.h
index 6d16a2c..26e97d8 100644
--- a/include/compat/gcc/stdatomic.h
+++ b/include/compat/gcc/stdatomic.h
@@ -41,6 +41,8 @@ typedef unsigned int atomic_uint;
#define atomic_load_explicit(p_a, mo) __atomic_load_n(p_a, mo)
#define atomic_fetch_add(p_a, inc) __atomic_fetch_add(p_a, inc, __ATOMIC_SEQ_CST)
#define atomic_fetch_sub(p_a, dec) __atomic_fetch_sub(p_a, dec, __ATOMIC_SEQ_CST)
+#define atomic_exchange(p_a, v) __atomic_exchange_n(p_a, v, __ATOMIC_SEQ_CST)
+#define atomic_fetch_or(p_a, v) __atomic_fetch_or(p_a, v, __ATOMIC_SEQ_CST)
#endif /* !defined(__cplusplus) */