SOPC_Atomic_Int_Add not using __atomic
Description
SOPC_Atomic_Int_Add
(p_atomic.c
for linux
and freertos
) uses the old legacy __sync
compiler builtin instead of the new highly recommended __atomic
builtin compiler. We should always use the __atomic
ones when available.
Moreover, freertos
platform does not check the compiler (and its version) and assumes that the pointer size is 4 bytes.
Edited by Paul Luperini