As an aside, sra is not the same as srl in SPARC ASM. Those game developers able to realize why this is are far brighter than I.
I enjoy reading your journals on this fine site.
As an aside, sra is not the same as srl in SPARC ASM. Those game developers able to realize why this is are far brighter than I.
As an aside, sra is not the same as srl in SPARC ASM. Those game developers able to realize why this is are far brighter than I.
Previous Entry
Ring of Pain
Next Entry
I hate midterms
Comments
March 04, 2005 02:32 PM
int sra(0);
int srl(0);
if (sra == srl)
puts("nope, you're wrong");
else
puts("sonofagun, you're right");
int srl(0);
if (sra == srl)
puts("nope, you're wrong");
else
puts("sonofagun, you're right");
March 04, 2005 02:54 PM
In case you were actually looking for an answer... (don't know if that was sarcasm or not, hard to tell with just ascii).
I expect that sra is "shift right arithmetic" and srl is "shift right logical". Which one you use is important if the number being shifted is negative. sra is sign-preserving, srl always shifts in a zero into the msb.
I expect that sra is "shift right arithmetic" and srl is "shift right logical". Which one you use is important if the number being shifted is negative. sra is sign-preserving, srl always shifts in a zero into the msb.
March 09, 2005 03:12 PM
Advertisement
Latest Entries
A decade of GDNet
2098 views
Getting Comfortable With Some New Friends
1707 views
Finishing a Game
1732 views
Cut that out
2090 views
tuuurbos
1726 views
Holy crap
1371 views
Another entry this month - can it be?
1465 views
Hello there
1314 views
Metaphorical Journeys of 2010
1238 views
Ho ho ho, the bodies hit the floor
1515 views
Advertisement
As an aside, sra is not the same as srl in SPARC ASM. Those game developers able to realize why this is are far brighter than I.
The reason that sra != srl in SPARC ASM is because there is a 1 letter difference ;)