My Project
Functions
field.c File Reference

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

#include "field.h"

Functions

int getBit (int value, int position)
 
int setBit (int value, int position)
 
int clearBit (int value, int position)
 
int getField (int value, int hi, int lo, bool isSigned)
 
int setField (int oldValue, int hi, int lo, int newValue)
 

Detailed Description

Your implementation of the functions defined in field.h. You may add other function if you find it helpful.

Author
Your name goes here

Function Documentation

int clearBit ( int  value,
int  position 
)
Todo:
Implement in field.c based on documentation contained in field.h
int getBit ( int  value,
int  position 
)
Todo:
Implement in field.c based on documentation contained in field.h
int getField ( int  value,
int  hi,
int  lo,
bool  isSigned 
)
Todo:
Implement in field.c based on documentation contained in field.h
int setBit ( int  value,
int  position 
)
Todo:
Implement in field.c based on documentation contained in field.h
int setField ( int  oldValue,
int  hi,
int  lo,
int  newValue 
)
Todo:
Implement in field.c based on documentation contained in field.h