Question: float mult_eg(float a, float b, float c, float d) { float p1 = a*b; float p2 = a+b; float p3 = c*d; float p4 =

float mult_eg(float a, float b, float c, float d) { float p1 = a*b; float p2 = a+b; float p3 = c*d; float p4 = c+d; float p5 = a*c; float p6 = a*d; float p6 += p1* p2 + p3*p4+p5; return p6; }

Assuming the processor has 2 FP multiply and 2 FP add, determine how many instruction cycles to perform the function (assuming multiply and add are done in 1 cycle)! (Explain in the diagram too!)

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!