Misc clean up.

branch prediction optimization
replace bitwise or operators with logical or operator
Fix name of XF86VidModeSetGamma symbol name.
various shuffling