My Project
|
You will modify this file and implement nine functions. More...
Functions | |
const char * | getBinary (iFloat_t value) |
iFloat_t | floatGetSign (iFloat_t x) |
iFloat_t | floatGetExp (iFloat_t x) |
iFloat_t | floatGetVal (iFloat_t x) |
void | floatGetAll (iFloat_t x, iFloat_t *sign, iFloat_t *exp, iFloat_t *val) |
iFloat_t | floatLeftMost1 (iFloat_t bits) |
iFloat_t | floatAbs (iFloat_t x) |
iFloat_t | floatNegate (iFloat_t x) |
iFloat_t | floatAdd (iFloat_t x, iFloat_t y) |
iFloat_t | floatSub (iFloat_t x, iFloat_t y) |
Your implementation of the functions defined in iFloat.h. You may add other function if you find it helpful. Added function should be declared static to indicate they are only used within this file.
iFloat_t floatAdd | ( | iFloat_t | x, |
iFloat_t | y | ||
) |
void floatGetAll | ( | iFloat_t | x, |
iFloat_t * | sign, | ||
iFloat_t * | exp, | ||
iFloat_t * | val | ||
) |
iFloat_t floatLeftMost1 | ( | iFloat_t | bits | ) |
iFloat_t floatSub | ( | iFloat_t | x, |
iFloat_t | y | ||
) |
const char* getBinary | ( | iFloat_t | value | ) |
Get a 16/32 bit binary representation of a value.
value | the value to be converted to binary |