This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Porting GCC: setting lenght-atrribute


> Date: Sun, 13 Feb 2000 11:52:42 +0100
> From: Mueller-Lehnitz@t-online.de (Anja =?iso-8859-1?Q?M=FCller?=)

> Another Question: What is the difference between Arithmetical and
> Logical Shifting ? When shiften left the GCC does not distinguish
> between these two cases -> there is only a the Operation "ashl*3",
> but when shiften right there are the Operations "ashr*3" and
> "lshr*3". What is the difference between them ?

Logical means shifting in a zero bit.  Arithmetic means shifting in a
copy of the high bit.  Welcome to assembly language.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]