atomics: Use __atomic_*_n() variant primitives
commit89943de17c4e276f2c47f05b4604e8816a6a636c
authorPranith Kumar <bobby.prani@gmail.com>
Mon, 29 Aug 2016 17:17:01 +0000 (29 13:17 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2016 17:09:44 +0000 (13 19:09 +0200)
tree658abe8cd074bb6a9b7a6ff6b0695342a58cfbfd
parent705ac1ca539ba05ab52c3290ccb45f9e47aa7c5e
atomics: Use __atomic_*_n() variant primitives

Use the __atomic_*_n() primitives which take the value as argument. It
is not necessary to store the value locally before calling the
primitive, hence saving us a stack store and load.

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Message-Id: <20160829171701.14025-1-bobby.prani@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu/atomic.h