Colin Fowler <[email protected]> writes: > @@ -396,6 +396,88 @@ > "beq $1,L0xchg_add\n\t" > "mb") > > + > +#elif defined(__arm__) > + > +/* > + * Similar to the Sparc, many ARM CPUs lack the necessary > + * atomic instructions. Fall back in a similar way, but instead > + * use pthreads. This solution is generic enough to work on > + * pretty much any CPU, but is still very fast thanks to > + * Linux's NPTLS. > + */
Actually since it's generic there's no reason to put it in an __arm__ ifdef, it could simply be the default fallback. -- Alexandre Julliard [email protected]
