Solutions Chapter 3 Exercise 3.6 In this exercise

Solutions Chapter 3 Exercise 3.6 In this exercise
1 / 1
Solutions Chapter 3 Exercise 3.6 In this exercise - slide 1 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 2 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 3 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 4 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 5 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 6 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 7 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 8 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 9 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 10 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 11 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 12 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 13 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 14 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 15 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 16 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 17 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 18 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 19 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 20 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 21 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 22 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 23 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 24 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 25 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 26 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 27 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 28 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 29 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 30 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 31 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 32 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 33 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 34 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 35 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 36 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 37 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 38 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 39 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 40 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 41 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 42 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 43 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 44 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 45 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 46 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 47 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 48 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 49 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 50 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 51 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 52 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 53 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 54 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 55 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 56 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 57 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 58 of 59 Solutions Chapter 3 Exercise 3.6 In this exercise - slide 59 of 59
Solutions Chapter 3 Exercise 3.6 In this exercise we will look at a couple of other ways to improve the performance of multiplication, based primarily on doing more shifts and fewer arithmetic operations. The following table shows pairs of

Related Topics

Download this presentation From Below

"Solutions Chapter 3 Exercise 3.6 In this exercise" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Solutions Chapter 3<br>
02
Exercise 3.6 In this exercise we will look at a couple of other ways to improve the performance of multiplication, based primarily on doing more shifts and fewer arithmetic operations. The following table shows pairs of hexadecimal numbers.<br>
03
3.6.1 As discussed in the text, one possible performance enhancement is to do a shift and add instead of an actual multiplication. Since 9×6, for example, can be written (2×2×2+1)×6, we can calculate 9×6 by shifting 6 to the left 3 times and then adding 6 to that result. Show the best way to calculate A×B using shifts and adds/subtracts. Assume that A and B are 8-bit unsigned integers.
Solution:
a.
0x33 × 0x55 = 0x10EF.
0x33 = 51, and 51 = 32 + 16 + 2 + 1.
We can shift 0x55 left 5 places (0xAA0), then add 0x55 shifted left 4 places (0x550), then add 0x55 shifted left once (0xAA), then add 0x55. 0xAA0 + 0x550 + 0xAA + 0x55 = 0x10EF.
3 shifts, 3 adds.<br>