f201fcc561
Clang only supports atomic operations for ARMv6. For non-ARMv6, we still need to emit these functions. Clang's prototype for these functions slightly differs, as it is truly based on GCC's documentation. It requires the use of signed types, but also requires varargs. Still, we are not allowed to simply implement this function directly. Cleverly work around this by implementing it under a different name and using __strong_reference(). |
||
---|---|---|
.. | ||
__sync_fetch_and_add_4.c | ||
__sync_fetch_and_add_8.c | ||
__sync_fetch_and_and_4.c | ||
__sync_fetch_and_and_8.c | ||
__sync_fetch_and_op_n.h | ||
__sync_fetch_and_or_4.c | ||
__sync_fetch_and_or_8.c | ||
__sync_fetch_and_sub_4.c | ||
__sync_fetch_and_sub_8.c | ||
__sync_fetch_and_xor_4.c | ||
__sync_fetch_and_xor_8.c | ||
__sync_lock_test_and_set_4.c | ||
__sync_lock_test_and_set_8.c | ||
__sync_val_compare_and_swap_4.c | ||
__sync_val_compare_and_swap_8.c | ||
__sync_val_compare_and_swap_n.h | ||
Makefile |