Left-shifting an integer operand and providing a clamped integer

Boots – shoes – and leggings

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 700

Patent

active

057453934

ABSTRACT:
A method and apparatus for left-shifting a signed or unsigned integer operand and providing a clamped integer result in a single instruction cycle is disclosed. The apparatus includes a left-shifter for left-shifting the operand to obtain a shifted intermediate result and shifted-out bits. The apparatus also includes an overflow detector for generating an overflow signal in response to a sign bit of the operand, a sign bit of the shifted intermediate result, the shifted-out bits, and a mode signal indicative of whether the operand is signed or unsigned. The overflow signal has a first logical value when overflow occurs, and a second logical value in the absence of overflow. The apparatus also includes a clamping circuit for providing a maximum unsigned integer when the overflow signal has the first logical value and the operand is unsigned, a maximum positive signed integer when the overflow signal has the first logical value and the operand is positive and signed, a maximum negative signed integer when the overflow signal has the first logical value and the operand is negative and signed, and the shifted intermediate result when the overflow signal has the second logical value.

REFERENCES:
patent: 4931970 (1990-06-01), Cook et al.
patent: 5282153 (1994-01-01), Bartkowiak et al.
patent: 5555202 (1996-09-01), Chu
"Programming The 80386" by Crawford et al., published by SYBEX Inc., 1987, pp. 241-244 and 405-406.
"Computer Arithmetic Systems: Algorithms, Architecture and Implementations" by A. Omondi, published by Prentice Hall International (UK) Limited, 1994, pp. 505-513.

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Left-shifting an integer operand and providing a clamped integer does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Left-shifting an integer operand and providing a clamped integer, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Left-shifting an integer operand and providing a clamped integer will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-1539137

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.