atomic_sub_fetch in atomic.h
Hi all,
shouldn't
#define atomic_sub_fetch(v, n) _sync_sub_and_fetch(&(v), n)
in file include/nocore/atomic.h line 48 of xenomai-forge be rather
#define atomic_sub_fetch(v, n) __sync_sub_and_fetch(&(v), n)
?
It is not used by the current code anyway, but does not compile when trying to do so..
Thanks,
Matthias
Quoted 6 lines · Matthias Schneider
Hi all,
shouldn't
#define
atomic_sub_fetch(v, n)_sync_sub_and_fetch(&(v), n)
Quoted 8 lines
in file
include/nocore/atomic.hline 48 of xenomai-forge be rather#define
atomic_sub_fetch(v, n)__sync_sub_and_fetch(&(v), n)?
It is not used by the current code anyway, but does not compile when trying to do so..
Typo indeed. Thanks for the heads up.
Signature · 1 line
Philippe.