Lines Matching +full:hart +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
8 * http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
11 * Darren Hart <dvhart@linux.intel.com>
14 * 2009-Nov-17: Initial version by Darren Hart <dvhart@linux.intel.com>
28 * atomic_cmpxchg() - Atomic compare and exchange
33 * Return the old value of addr->val.
38 return __sync_val_compare_and_swap(&addr->val, oldval, newval); in atomic_cmpxchg()
42 * atomic_inc() - Atomic incrememnt
45 * Return the new value of addr->val.
50 return __sync_add_and_fetch(&addr->val, 1); in atomic_inc()
54 * atomic_dec() - Atomic decrement
57 * Return the new value of addr-val.
62 return __sync_sub_and_fetch(&addr->val, 1); in atomic_dec()
66 * atomic_set() - Atomic set
70 * Return the new value of addr->val.
75 addr->val = newval; in atomic_set()