Difference between revisions of "Thread:Talk:Yatagan/Source/Crazy Ideas"
Jump to navigation
Jump to search
(New thread: Crazy Ideas) |
(Very minor edit) |
||
Line 1: | Line 1: | ||
− | First, we initialize ''integer'' to | + | First, we initialize ''integer'' to 255 to save a byte. :)<br>Then, in the [[PM]] code we use <code>(integer = integer >> 1)</code>, instead of <code>(integer = integer - 1)</code>. |
If I'm right (which I rarely am), this would be smaller, faster and smarter. How does it sound to you? | If I'm right (which I rarely am), this would be smaller, faster and smarter. How does it sound to you? |
Latest revision as of 14:08, 22 March 2013
First, we initialize integer to 255 to save a byte. :)
Then, in the PM code we use (integer = integer >> 1)
, instead of (integer = integer - 1)
.
If I'm right (which I rarely am), this would be smaller, faster and smarter. How does it sound to you?