My Project
Functions
flt32.c File Reference

You will modify this file and implement nine functions. More...

#include "flt32.h"

Functions

int flt32_get_sign (flt32 x)
 
int flt32_get_exp (flt32 x)
 
int flt32_get_val (flt32 x)
 
void flt32_get_all (flt32 x, int *sign, int *exp, int *val)
 
int flt32_left_most_1 (int bits)
 
flt32 flt32_abs (flt32 x)
 
flt32 flt32_negate (flt32 x)
 
flt32 flt32_add (flt32 x, flt32 y)
 
flt32 flt32_sub (flt32 x, flt32 y)
 

Detailed Description

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

Function Documentation

flt32 flt32_abs ( flt32  x)
Todo:
Implement in flt32.c based on documentation contained in flt32.h
flt32 flt32_add ( flt32  x,
flt32  y 
)
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_get_exp ( flt32  x)
Todo:
Implement in flt32.c based on documentation contained in flt32.h
int flt32_get_sign ( flt32  x)
Todo:
Implement in flt32.c based on documentation contained in flt32.h
int flt32_get_val ( flt32  x)
Todo:
Implement in flt32.c based on documentation contained in flt32.h
int flt32_left_most_1 ( int  bits)
Todo:
Implement in flt32.c based on documentation contained in flt32.h
flt32 flt32_negate ( flt32  x)
Todo:
Implement in flt32.c based on documentation contained in flt32.h
flt32 flt32_sub ( flt32  x,
flt32  y 
)
Todo:
Implement in flt32.c based on documentation contained in flt32.h