Skip to contentSkip to conversation

atomic_sub_fetch in atomic.h

Xenomai Matthias Schneider 2 participants 2 messages Jan 28, 2014 – Jan 29, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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.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..

Typo indeed. Thanks for the heads up.

Signature · 1 line
Philippe.