1cat <<EOF 2/** 3 * arch_${atomic}_add_negative${order} - Add and test if negative 4 * @i: integer value to add 5 * @v: pointer of type ${atomic}_t 6 * 7 * Atomically adds @i to @v and returns true if the result is negative, 8 * or false when the result is greater than or equal to zero. 9 */ 10static __always_inline bool 11arch_${atomic}_add_negative${order}(${int} i, ${atomic}_t *v) 12{ 13 return arch_${atomic}_add_return${order}(i, v) < 0; 14} 15EOF 16