[PATCH] atomic operations for ppc
douglas at creagertino.net
Tue Mar 20 06:52:23 PDT 2012
> I've contacted both apr and boost respective developers and they have
> confirmed the code comes from apr.
> Now, considering that there are a limited number of ways to implement
> an atomic operation in assembler, the size of the code and the amount
> of almost identical implementations around (i.e ,  or ) it'd
> be very difficult (if not impossible) to copyright the code.
> If you truly want to be on the safe side removing the comments and
> changing the variable names would be enough.
You could also draw the PPC atomics from the MIT-licensed OpenPA project . It's structured differently (platform-specific LL and SC in separate static inline functions, with atomic-add implemented generically in terms of them), so any copyright on the APR code wouldn't apply.
More information about the jemalloc-discuss