mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-10 08:50:07 +08:00
The __atomic_test_and_set and __atomic_clear code was correct. They needed locking. Replaced to code with assembly code. The changes are in include/stdatomic.h, lib/stdatomic.c, lib/atomic.S Enabled tests/tests2/124_atomic_counter.c for apple again. Also moved lib/fetch_and_add.S code to lib/atomic.S. Removed lib/fetch_and_add.S Adjusted lib/Makefile |
||
---|---|---|
.. | ||
float.h | ||
stdalign.h | ||
stdarg.h | ||
stdatomic.h | ||
stdbool.h | ||
stddef.h | ||
stdnoreturn.h | ||
tccdefs.h | ||
tgmath.h | ||
varargs.h |