use generic-size macros for common implementation of atomic ops
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jun 2011 14:13:13 +0000 (10:13 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Jun 2011 14:13:13 +0000 (10:13 -0400)
commitb4e6d540d604b2c9fc617d6d7c2c02469c97ad0f
tree4f127da0b28f038402dfaf68a358deb28f7e9daf
parent2870aa1ec4cc2472ec09f72e2d758bc8d4739181
use generic-size macros for common implementation of atomic ops

The definition of _uatomic_cmpxchg is different in x86 and other
architectures.  For x86 it is a 4-argument macro, for other
architectures it is a 3-argument function.  This patch makes it easier
to implement atomic operations incrementally (first as a generic version
and then in machine-specific code), which aids testing and
bisectability.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/uatomic_generic.h
This page took 0.02799 seconds and 4 git commands to generate.