True-and-complement shift operations for r -- 2. (a) Two's complement left
shift. (b) Ones' complement left shift. (c) TC right shift.
The two's and ones' left arithmetic-shift algorithms are illustrated in Figure 1.6(a)
and (b). Proofs are left as Exercise 1.20.
In both the two's and ones' complement systems, the right arithmetic-shift
algorithm is
Zn_ 1 ~ Xn_ 1
Zi_ 1 -- Xi,
i =l,...,n-1
1.69
In this case, E
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.