Question: For a given CPU integer operations a+b, and a*b take almost identical amounts of time, for floating point (32 bit) multiplication takes approximately 3x as

For a given CPU integer operations a+b, and a*b take almost identical amounts of time, for floating point (32 bit) multiplication takes approximately 3x as long. Floating point additions and integer additions take nearly identical times. (Yes, those are nearly real numbers for Intel Haswell CPUs). For a program that is 20% logic operations (which take the same no matter what), 40% additions and 40% multiplications, derive a formula to calculate the estimated performance of changing the maths from Integer to Floating point operations on the same CPU

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!