Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: Using %stick where available



> > > >         rd      SOFTINT, %g1
> > > > -       btst    1, %g1
> > > > +       mov     1, %g5
> > > > +       sllx    %g5, 16, %g3
> > > > +       or      %g5, %g3, %g5
> > > 
> > > Only "set 0x1001, %g5" is faster.
> > 
> > oh much better than mine :-)
> 
> No, "set" is synonym of "sethi/or" sequence.  So it's same to your
> suggestion.  (except for confusing typo. 0x1001 -> 0x10001 :-)

right.  funtionally identical, but *much* easier to read... :)


.mrg.


Home | Main Index | Thread Index | Old Index