Chapter 3: 17 (page 238)
As discussed in the text, one possible performance enhancement is to do a shift and add instead of actual multiplication. Since , for example, can be written , we can calculate by shifting 6 to the left 3 times and then adding 6 to that result. Show the best way to calculate using shifts and adds/subtracts. Assume both inputs are 8 bit unsigned integers.
Short Answer
The value of the by adding and shifting is .