Question: /* * floatScale4 - Return bit-level equivalent of expression 4*f for * floating point argument f. * Both the argument and result are passed as

/* * floatScale4 - Return bit-level equivalent of expression 4*f for * floating point argument f. * Both the argument and result are passed as unsigned int's, but * they are to be interpreted as the bit-level representation of * single-precision floating point values. * When argument is NaN, return argument * Legal ops: Any integer/unsigned operations incl. ||, &&. also if, while * Max ops: 30 * Rating: 4 */ unsigned floatScale4(unsigned uf) {

}

I need return 4*f!!!!

ex: gives 8388608[0x800000] should return 25165824[0x1800000]

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!