[A83] Re: Signed division by a power of two.
[Prev][Next][Index][Thread]
[A83] Re: Signed division by a power of two.
Stupid like a fox!
Look ma, I'm an artist: http://aaronstj.deviantart.com
> > Afaik, sra (alone) preserves the sign.
>
>Well I'll be... It does!!
Hence the mnemonic SRA, which stands fro Shift Right Arithmetical, it was
designed with math in mind. If you want to shit right without preserving
the carry bit, you want SRL, or Shift Right Logical, which is usefull for
unsigned numbers and logical (hence the name) operations
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail