Add header files supporting gcc __sync_ primitives
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 18 Jun 2010 16:05:12 +0000 (12:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 18 Jun 2010 16:05:12 +0000 (12:05 -0400)
commit9c9741004e1bf2a35d46ebf1e66bfbb5ec0e938d
tree138090b2592a7ab830312600b9201f6f538a9934
parentd3d3d8f0136d7c095bdf97b17ec3f1d7a1b1dfe6
Add header files supporting gcc __sync_ primitives

Add a urcu/arch_gcc.h and urcu/uatomic_arch_gcc.h whose primitives are
based on the gcc __sync_ primitives.  This should be usable for all
systems that have correctly implemented __sync_ primitives, which sadly
does not include all combinations of systems and compilers.  In addition,
specific systems may gain higher performance with hand-coded primitives.
Nevertheless, this is nice for getting a new architecture up and running
quickly.

As suggested by Paolo Bonzini, defer the definition of mb() to the common
arch_generic.h file, and also defer the uatomic*() primitives to
uatomic_generic.h.

[Mathieu : fixed arch_gcc.h header which contained incorrect arch_unknown.h in
           header.]

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu/arch_gcc.h [new file with mode: 0644]
urcu/uatomic_arch_gcc.h [new file with mode: 0644]
This page took 0.034336 seconds and 4 git commands to generate.