[Linux-ia64] atomic add instruction

Swaminathan Sivasubramanian
2001-07-17T22:09:46Z

Hello Everyone,

I want an atomic function that does addition of a constant to the value in
a memory location and returns the previous value in that location.

Is there any macro/function defined in IA-64's atomic.h already. (will
fetch-and-add solve the purpose?) or one should write his own function for
it

Thanking in advance,
Swami