#include "field.h" #include "flt32.h" /** @file flt32.c * @brief You will modify this file and implement nine functions * @details Your implementation of the functions defined in flt32.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. *

* @author Your name goes here */ /** @todo Implement in flt32.c based on documentation contained in flt32.h */ int flt32_get_sign (flt32 x) { return 0; /* implement this */ } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ int flt32_get_exp (flt32 x) { return 0; /* implement this */ } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ int flt32_get_val (flt32 x) { return 0; } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ void flt32_get_all(flt32 x, int* sign, int*exp, int* val) { } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ int flt32_left_most_1 (int bits) { return -1; } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ flt32 flt32_abs (flt32 x) { return 0; } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ flt32 flt32_negate (flt32 x) { return 0; } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ flt32 flt32_add (flt32 x, flt32 y) { return 0; } /** @todo Implement in flt32.c based on documentation contained in flt32.h */ flt32 flt32_sub (flt32 x, flt32 y) { return 0; }