From: Paul E. McKenney Date: Fri, 18 Jun 2010 16:05:12 +0000 (-0400) Subject: Add header files supporting gcc __sync_ primitives X-Git-Tag: v0.4.5~5 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=9c9741004e1bf2a35d46ebf1e66bfbb5ec0e938d;hp=9c9741004e1bf2a35d46ebf1e66bfbb5ec0e938d;p=urcu.git 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 Signed-off-by: Mathieu Desnoyers ---