Author | SHA1 | Message | Date |
---|---|---|---|
|
7942907878 | compat/atomics: fix atomic_fetch_xor | 8 years ago |
|
6a93b596c5 |
compat/atomics: add typecasts in atomic_compare_exchange_strong()
The Solaris and Windows emulations of atomic_compare_exchange_strong() need typecasts to avoid compiler warnings, because the functions they call expect a void* pointer but an intptr_t integer is passed. Note that the emulations of atomic_compare_exchange_strong() (except the gcc version) only work for atomic_intptr_t because of the type of the second argument (|expected|). See http://en.cppreference.com/w/c/atomic: _Bool atomic_compare_exchange_strong( volatile A* obj, C* expected, C desired ); The types of the first argument and second argument are different (|A| and |C|, respectively). |C| is the non-atomic type corresponding to |A|. In the emulations of atomic_compare_exchange_strong(), |C| is intptr_t. This implies |A| can only be sig_intptr_t. Signed-off-by: Wan-Teh Chang <wtc@google.com> |
8 years ago |
|
f88c8e0dc3 |
compat/atomics: rename header guards
Fixes fate-source. Signed-off-by: James Almer <jamrial@gmail.com> |
8 years ago |
|
70faadc826 |
Add a compat stdatomic.h implementation based on suncc atomics
Adapted from the code by Rémi Denis-Courmont from VLC
This merges libav commit
|
8 years ago |
|
bb81ed4765 |
Add a compat stdatomic.h implementation based on suncc atomics
Adapted from the code by Rémi Denis-Courmont from VLC |
8 years ago |