gdb: lx-symbols: store the abspath()
[linux-2.6-microblaze.git] / scripts / atomic / fallbacks / inc_not_zero
1 cat <<EOF
2 /**
3  * ${arch}${atomic}_inc_not_zero - increment unless the number is zero
4  * @v: pointer of type ${atomic}_t
5  *
6  * Atomically increments @v by 1, if @v is non-zero.
7  * Returns true if the increment was done.
8  */
9 static __always_inline bool
10 ${arch}${atomic}_inc_not_zero(${atomic}_t *v)
11 {
12         return ${arch}${atomic}_add_unless(v, 1, 0);
13 }
14 EOF