tornavis/intern/atomic
Sergey Sharybin 1bb2077250 Add locking fallback atomics implementation
Is used for platforms for which we do not have native implementation,
such as MIPS, for example.

It is possible to test locking implementation on local computer by
defining `ATOMIC_FORCE_USE_FALLBACK` in the atomic_ops_unix.h file.

Run full regression suit with the locking implementation on amd64
Linux platform and all tests passed.

Having non-optimal but working implementation for odd-ball platforms
seems to be a better choice than failing the build entirely.

Differential Revision: https://developer.blender.org/D12313
2021-08-26 14:36:59 +02:00
..
intern Add locking fallback atomics implementation 2021-08-26 14:36:59 +02:00
tests Atomics: Add 16 bit fetch + AND and fetch + OR signed integer operations 2020-12-04 18:28:46 +01:00
CMakeLists.txt Atomic: Cover with unit tests 2020-11-19 17:19:48 +01:00
atomic_ops.h Atomics: Add 16 bit fetch + AND and fetch + OR signed integer operations 2020-12-04 18:28:46 +01:00