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.
f
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.
39,938,339
questions answered
GET
Answers.
GET THE APP.
weegy*
*
Get answers from Weegy and a team of really smart live experts.
Popular Conversations
Solve for x in the equation x - 4 =7.
Weegy: 2x-8User: Solve this 4y + 228 = 352 Weegy: 4y+228=352; subtract 228 from both sides, 4y = 124. Divide both ...
5/16/2025 1:34:16 AM| 10 Answers
Which organelle is known as the powerhouse of the cell? a) Nucleus b) ...
Weegy: Mitochondria: is known as the powerhouse of the cell. User: The process by which plants convert sunlight ...
5/8/2025 6:03:39 PM| 5 Answers
What is the medical term for a blood clot?
5/12/2025 7:26:03 AM| 4 Answers
What was the significance of the Battle of Hastings?
Weegy: The significance of the Battle of Marathon was the Athenians defeated the Persians and halted an invasion by ...
5/13/2025 7:33:35 AM| 4 Answers
What was the significance of the Treaty of Tordesillas?
Weegy: Treaty of Tordesillas divided the world between Spain and Portugal. User: Which event marked the end of the ...
5/13/2025 8:35:02 AM| 4 Answers
Which quantity measures the amount of matter in an object? A. Mass B. ...
Weegy: Density = Mass/Volume. User: What is the physical quantity that describes the rate of change of velocity? A. ...
5/9/2025 2:37:23 PM| 3 Answers
S
Points 15 [Total 15] Ratings 0 Comments 5 Invitations 1 Offline
S
Points 10 [Total 10] Ratings 0 Comments 10 Invitations 0 Offline
S
Points 10 [Total 10] Ratings 1 Comments 0 Invitations 0 Offline
S
L
Points 3 [Total 186] Ratings 0 Comments 3 Invitations 0 Offline
S
L
Points 3 [Total 402] Ratings 0 Comments 3 Invitations 0 Offline
S
Points 3 [Total 11] Ratings 0 Comments 3 Invitations 0 Offline
S
L
P
Points 2 [Total 2645] Ratings 0 Comments 2 Invitations 0 Offline
S
Points 1 [Total 3] Ratings 0 Comments 1 Invitations 0 Offline
S
Points 1 [Total 1] Ratings 0 Comments 1 Invitations 0 Offline
S
Points 1 [Total 2] Ratings 0 Comments 1 Invitations 0 Offline
* Excludes moderators and previous
winners (Include)
Home | Contact | Blog | About | Terms | Privacy | © Purple Inc.