Don's Blog
Monday, March 12, 2012
my setOn and setOff
void setOn(unsigned int& val, int bitNo){
retuen val = val | (1 << bitNo);
}
void setOff(unsigned int& val, int bitNo){
retuen val = val & ~(1 << bitNo);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment