const U64 maxValPerChannel = (U64)1 << mBitsPerChannel;

What's with the extra space indention?