re: Using %stick where available
matthew green <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.sparc64 |
|---|---|
| Message-ID | <[email protected]> |
> > > > 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.