Question: C programing extract sign function for IEEE floating point value #ifdef HALF typedef short iFloat_t; #define BITS 16 #define BITS_EXP 5 #define BITS_MANT 10 #define

C programing extract sign function for IEEE floating point value

#ifdef HALF typedef short iFloat_t;

#define BITS 16 #define BITS_EXP 5 #define BITS_MANT 10 #define EXP_BIAS 15

#else typedef int iFloat_t;

#define BITS 32 #define BITS_EXP 8 #define BITS_MANT 23 #define EXP_BIAS 127

#endif

/** Extract the sign of the argument. * @param x the integer containing an IEEE floating point value * @return 0 if the value is 0 or positive, 1 if it is negative */

iFloat_t floatGetSign (iFloat_t x) { return 0; /* implement this */ }

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!