My Project
|
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) |
Your implementation of the functions defined in field.h. You may add other function if you find it helpful.
int clearBit | ( | int | value, |
int | position | ||
) |
int getBit | ( | int | value, |
int | position | ||
) |
int getField | ( | int | value, |
int | hi, | ||
int | lo, | ||
bool | isSigned | ||
) |
int setBit | ( | int | value, |
int | position | ||
) |