Question and answer
why shift instruction can be used to mutiply by powers?
Most computers use a "shift and add" algorithm for multiplying small integers. [ Both base 2 long multiplication and base 2 peasant multiplication reduce to this same algorithm. In base 2, multiplying by the single digit of the multiplier reduces to a simple series of logical AND operations. Each partial product is added to a running sum as soon as each partial product is computed. Most currently available microprocessors implement this or other similar algorithms (such as Booth encoding) for various integer and floating-point sizes in hardware multipliers or in microcode. On currently
available processors, a bit-wise shift instruction is faster than a multiply instruction and can be used to multiply (shift left) and divide (shift right) by powers of two. Multiplication by a constant and division by a constant can be implemented using a sequence of shifts and adds or subtracts. ]
Expert answered|jher000|Points 6160|
Question
Asked 10/26/2011 10:43:16 PM
0 Answers/Comments
This answer has been confirmed as correct and helpful.
s
Get an answer
New answers
Rating

There are no new answers.

Comments

There are no comments.

Add an answer or comment
Log in or sign up first.
40,391,476
questions answered
GET
Answers.
GET THE APP.
weegy*
*
Get answers from Weegy and a team of really smart live experts.
Popular Conversations
2x dx = x².
Weegy: (2x + 1)? = (2x + 1)(2x + 1) = 4x? + 4x + 1 Answer: 4x? + 4x + 1
6/8/2026 8:50:32 AM| 2 Answers
limit (x²-1)/(x-1) = x+1.
Weegy: 5/7(x+y)-1/7(x-1)= 5x + 5y/7 - x - 1/7 = 5x - x + 5y - 1/7 = 4x + 5y - 1/7
6/8/2026 8:50:39 AM| 2 Answers
Distance = 5 cm × 1000 = 5000 cm = 50 m.
6/8/2026 8:55:01 AM| 2 Answers
Bandwidth = 1000 MB / 10 s = 100 MB/s.
6/8/2026 8:56:50 AM| 2 Answers
The result of subtracting (4x2 x) from -3x2 is
Weegy: (4x2 ? 2x + 3) ? ( -3x2 + 2x ? 5) = 7x2 - 4x + 8. User: Simplify this expression. 3x2(7x2 9)
6/10/2026 1:47:07 PM| 2 Answers
Weight, mass=320 kg, g=9.8 m/s², weight = ?
6/13/2026 2:07:24 PM| 2 Answers
21/28 + 13/21 = ? 35/48 - 9/16 = ?
Weegy: 2 - 2 = 0
6/15/2026 11:55:58 AM| 2 Answers
75% of 9,600 = ?
6/15/2026 12:01:29 PM| 2 Answers
28.4 × 9.5 = ?
Weegy: 28 (twenty-eight) is the natural number following 27 and preceding 29.
6/16/2026 6:56:52 AM| 2 Answers
x^2 - 900 = 0, find x
Weegy: information technology (IT) is the use of any computers, storage, networking, and other physical devices, ...
6/17/2026 6:03:53 AM| 2 Answers
GET
Answers.
GET THE APP.
weegy*
*
Get answers from Weegy and a team of really smart live experts.
S
Points 10 [Total 10] Ratings 0 Comments 0 Invitations 1 Offline
S
Points 4 [Total 4] Ratings 0 Comments 4 Invitations 0 Offline
S
L
P
1
1
1
Points 1 [Total 1232] Ratings 0 Comments 1 Invitations 0 Offline
* Excludes moderators and previous
winners (Include)
Home | Contact | Blog | About | Terms | Privacy | © Purple Inc.