Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2005-04-06 12:26:13


Alexander Terekhov wrote:

[... missing sync ...]

> > loop0:
> >
> > lwarx
> > add -1
> > beq acquire-without-sync
> >
> > sync
> >
> > loop1:
> >
> > stwcx.
> > beq+ done
> >
> > loop2:
> >
> > lwarx
> > add -1
> > bne loop1
> >
> > acquire-with-sync:
> >
> > stwcx.
> > bne- loop2
> > isync
> > blr
> >
> > acquire-without-sync:
> >
> > stwcx.
> > bne- loop0
> > isync
> >
> > done:
> >
> > blr
>
> I must be missing something, but it looks to me that you have
> way too much branching and isync-ing.

Got it now. Thanks.

regards,
alexander.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk