Lines 71-84
extern void vlprintf (const char *, cons
Link Here
|
71 |
|
71 |
|
72 |
/*---------------------------------------------------------------------------*\ |
72 |
/*---------------------------------------------------------------------------*\ |
73 |
\*---------------------------------------------------------------------------*/ |
73 |
\*---------------------------------------------------------------------------*/ |
74 |
#ifndef atomic_xchg |
|
|
75 |
static inline unsigned long atomic_xchg ( |
76 |
volatile atomic_t * v, |
77 |
unsigned value |
78 |
) { |
79 |
return __xchg (value, &v->counter, sizeof (unsigned)); |
80 |
} /* atomic_xchg */ |
81 |
#endif |
82 |
/*---------------------------------------------------------------------------*\ |
74 |
/*---------------------------------------------------------------------------*\ |
83 |
\*---------------------------------------------------------------------------*/ |
75 |
\*---------------------------------------------------------------------------*/ |
84 |
#ifndef NDEBUG |
76 |
#ifndef NDEBUG |