|
cat <<EOF
|
|
/**
|
|
* ${class}${atomicname}() - atomic exchange with ${desc_order} ordering
|
|
* @v: pointer to ${atomic}_t
|
|
* @new: ${int} value to assign
|
|
*
|
|
* Atomically updates @v to @new with ${desc_order} ordering.
|
|
*
|
|
* ${desc_noinstr}
|
|
*
|
|
* Return: The original value of @v.
|
|
*/
|
|
EOF
|