fixed up coding style, no changes in functionality

http://www.m5sim.org/Coding_Style
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
fix incorrect use of bitwise operations