git: kernel - Add atomic_fcmpset_*()
Matthew Dillon
dillon at crater.dragonflybsd.org
Mon Oct 16 11:30:38 PDT 2017
commit 29a7b5b1c33edc4e23996cd9451878d90f634e0a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Oct 15 14:20:56 2017 -0700
kernel - Add atomic_fcmpset_*()
* Add atomic_fcmpset_*(). GCC has gotten good enough that it no longer
forces that &count onto the stack.
These functions work like atomic_cmpset_*() but update the originating
value on failure, allowing us to avoid reloading it from memory.
Suggested-by: mjg__
Summary of changes:
sys/cpu/x86_64/include/atomic.h | 55 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 54 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/29a7b5b1c33edc4e23996cd9451878d90f634e0a
--
DragonFly BSD source repository
More information about the Commits
mailing list