Christoph Lameter wrote on Thursday, June 15, 2006 2:29 PM > > On Thu, Jun 15, 2006 at 01:35:42PM -0700, Christoph Lameter wrote: > > > Why not > > > > > > #define ia64_atomic_add(__i, __v) ia64_fetchadd(__i, &v->counter, acq) > > > > Because ia64_fetchadd() only supports 8 different constants? > > Right. I forgot about that. Only a call to atomic_add does the fetchadd > trickery. Thanks. I guess I got confused, are you complaining about ia64_atomic_add or ia64_atomic64_add? If the former, there is not much can be done, but if the latter, yeah, it can be optimized for certain constant. - : send the line "unsubscribe linux-ia64" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |