[sldev] getting serious about software.
Callum Lerwick
seg at haxxed.com
Sat Jun 23 15:36:22 PDT 2007
On Sat, 2007-06-23 at 11:53 +0200, Dirk Moerenhout wrote:
> Your reference seems incomplete. I assume what you wanted to tell us
> is that in the mean time you've learned that the compiler translates
> temp/2 or temp>>1 into a single instruction (SAR on intel) which
> handles the sign correctly (as long as you correctly typed your
> variable as being signed)?
Nope, three instructions. Simply shifting is incorrect with a negative
value, and a lot of programmers don't seem to realize this. I didn't
until I broke OpenJPEG...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070623/7718d0cf/attachment.pgp
More information about the SLDev
mailing list