Difference between revisions of "Thread:Talk:Yatagan/Source/1.2.0/reply (13)"

From Robowiki
Jump to navigation Jump to search
m (Reply to 1.2.0)
 
(No difference)

Latest revision as of 03:00, 13 June 2013

It may be compiler dependent, I am just using standard jdk 1.6, but every time I have sized that it has been 2 bytes different.
1 is dconst_1, size 1 byte.
Any other double constant (except zero and possibly stuff that can be cast from an int constant) is
ldc2_w, indexbyte1, indexbyte2, size 3 bytes.

As to which is functionally superior I am not sure, I haven't done extensive benchmarking on that variant of Yatagan movement as those extra 2 bytes were not enough for me to add anything else, so I didn't use/test it much.