core/x86/arch_exports.h
/* atomically adds value to memory location var and returns the sum */
atomically adds value to memory location var and returns the sum
atomically adds value to memory location var and returns the sum
static inline int atomic_add_exchange_int(volatile int *var, int value)
{
    int temp;
    ATOMIC_ADD_EXCHANGE_int(var, value, temp);
    return (temp + value);
}
static inline int atomic_add_exchange_int ( volatile int * var , int value ) { int temp ; ATOMIC_ADD_EXCHANGE_int ( var , value , temp ) ; return ( temp + value ) ; }
atomically adds value to memory location var and returns the sum
atomically adds value to memory location var and returns the sum