One possible performance enhancement is to do a shift and add instead of an actual multiplication. Since 9 X 6, for exam

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

One possible performance enhancement is to do a shift and add instead of an actual multiplication. Since 9 X 6, for exam

Post by answerhappygod »

One Possible Performance Enhancement Is To Do A Shift And Add Instead Of An Actual Multiplication Since 9 X 6 For Exam 1
One Possible Performance Enhancement Is To Do A Shift And Add Instead Of An Actual Multiplication Since 9 X 6 For Exam 1 (50.35 KiB) Viewed 39 times
One possible performance enhancement is to do a shift and add instead of an actual multiplication. Since 9 X 6, for example, can be written (2 X 2 X 2 + 1) X 6, we can calculate 9 X 6 by shifting 6 to the left 3 times and then adding 6 to that result. Show the best way to calculate (0*35) X (0x57) using shifts and adds/subtracts. Assume both inputs are 8-bit unsigned integers.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply