answersLogoWhite

0

A logical shift moves bits left or right. After a left shift, the high-order bit is lost while a zero is inserted in the low-order bit. After a right-shift, the low-order bit is lost and a zero inserted in the high-order bit. The left (<<) and right (>>) shift operators are binary operators; the first operand is the value being shifted, the second operand is the number of bit positions to shift. Thus x << y will left shifts all the bits of x by y bit positions.

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

How do the arithmetic shift and logical shift differ?

With a logical shift the vacated bits are always filled with zeroes. With an arithmetic shift, a left shift will fill vacated bits with zeroes but a right shift fills the vacated bits with a copy of the most significant bit.


Difference between an arithmetic shift operation and a logical shift operation?

Instead of being filled with all 0s, as in logical shift, when shifting to the right, the leftmost bit (usually the sign bit in signed integer representations) is replicated to fill in all the vacant positions (this is a kind of sign extension).


What is B Transform and which areas is it applied?

it is a kind of shift-invariant transformation. and the methods are defined by logical operations.


What logical conclusion could be made if the light from all of the galaxies were affected by blue shift?

They would all be approaching each other.


During the Romantic period there was a shift from an emphasis on society science and reason to an emphasis on?

emotion and what individuals were feeling rather than logical thinking.


What is logical division?

Warsaw,30.04.2008 Logical division Logical division is inverse logical operation - it is the inverse of the logical multiplication (logical AND). More on:www.logop.republika.pl J.Kaweckijkawecki@gazeta.pl


What are the different types of Operators available in java?

arithmatic operator +,-,*,/,% assigment oprator == logical operator &amp;,|,^,&amp;&amp;,,! bitwise opertor &amp;,|,^ left shift &lt;&lt; right shift &gt;&gt; left shift zero fill &lt;&lt; assignment operator +=,-=,*=,/=


What is logical?

logical means which has strong meanings.


Logical organization of data?

logical organization


What is a logical verb?

logical verb definition


What identifies both the logical host and the logical network addresses?

The IP protocol identifies both the logical host as well as the logical network addresses...........


What is the significance of the shamt field in MIPS architecture and how does it impact the overall performance of the processor?

The shamt field in MIPS architecture is significant because it determines the shift amount for logical and arithmetic shift instructions. This field impacts the overall performance of the processor by allowing for efficient shifting operations, which can improve the speed and efficiency of data processing.