git: DragonFly_RELEASE_5_0 kernel - Add atomic_fcmpset_*()

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 2 15:28:22 PDT 2017


commit 4e5e0a38c3003b42ea7b99091e31f9ae463e5625
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/4e5e0a38c3003b42ea7b99091e31f9ae463e5625


-- 
DragonFly BSD source repository



More information about the Commits mailing list