natix.CompactDS.Bits.Bits C# (CSharp) Method

Bits() static private method

Count the number of enabled bits in an UInt16
static private Bits ( ) : System
return System
        static Bits()
        {
            PopCount8 = new byte[256];
            for (uint i = 0; i < 256; i++) {
                PopCount8 [i] = (byte)(PopCount4 [i & 0x0F] + PopCount4 [i >> 4]);
            }
            /*HammingTable16 = new byte[UInt16.MaxValue+1];
            for (uint i = 0; i <= UInt16.MaxValue; i++) {
                HammingTable16[i] = (byte)(HammingTable8[i & 0x00FF] + HammingTable8[ i >> 8]);
            }*/
        }
Bits