1 if [ -z "${pfx}" ]; then 1 if [ -z "${pfx}" ]; then 2 desc_return="Return: @true if @v was u 2 desc_return="Return: @true if @v was updated, @false otherwise." 3 fi 3 fi 4 4 5 cat <<EOF 5 cat <<EOF 6 /** 6 /** 7 * ${class}${atomicname}() - atomic add unless 7 * ${class}${atomicname}() - atomic add unless value with ${desc_order} ordering 8 * @v: pointer to ${atomic}_t 8 * @v: pointer to ${atomic}_t 9 * @a: ${int} value to add 9 * @a: ${int} value to add 10 * @u: ${int} value to compare with 10 * @u: ${int} value to compare with 11 * 11 * 12 * If (@v != @u), atomically updates @v to (@v 12 * If (@v != @u), atomically updates @v to (@v + @a) with ${desc_order} ordering. 13 * Otherwise, @v is not modified and relaxed o << 14 * 13 * 15 * ${desc_noinstr} 14 * ${desc_noinstr} 16 * 15 * 17 * ${desc_return} 16 * ${desc_return} 18 */ 17 */ 19 EOF 18 EOF
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.