My Project
Functions
flt32.c File Reference

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

#include "field.h"
#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_sve (flt32 x, int *sign, int *val, int *exp)
 
int flt32_leftmost_1 (int value)
 
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
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
void flt32_get_sve ( flt32  x,
int *  sign,
int *  val,
int *  exp 
)
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_leftmost_1 ( int  value)
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