octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bitshift of int8, int16, etc?


From: John W. Eaton
Subject: Re: bitshift of int8, int16, etc?
Date: Wed, 27 Jun 2007 11:15:03 -0400

On 26-Jun-2007, David Bateman wrote:

| prints "254". This is closer to what we are actually implementing and
| makes sense in a strict arithmetic shift. Enforcing saturation will be
| harder, so I'm inclined at least till matlab does something one way or
| the other to just make it do a strict arithmetic shift on a twos
| complement representation independent of the compiler, which is what the
| patch I supplied does..

OK, please check in your latest version of this patch and the doc
changes for bitshift ops.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]