MaKejia.com > product > Java calculator of logical shift operations.

What is 'logical shift'?

Machine-level operations available on nearly all processors which move each bit in a word one or more bit positions in the given direction. A left shift moves the bits to more significant positions (like multiplying by two), a right shift moves them to less significant positions (like dividing by two). The comparison with multiplication and division breaks down in certain circumstances - a logical shift may discard bits that are shifted off either end of the word and does not preserve the sign of the word (positive or negative). (from http://computing-dictionary.thefreedictionary.com)

What is this program?

This program is a 32-bit logical shift calculator. Try it and have fun!

Documentation

Documentation generated by javadoc here.

Download

Download the source code in zip or jar format.

License

License here.

Kejia Ma http://www.makejia.com 28 May 2004