Megadocs 0.0.1
All of megapop's internal libraries
Megapop.MegaCore.BitMath Class Reference

Static Public Member Functions

static int NumberOfSetBits (ulong i)
 64 bit implementation of the Hamming weight https://en.wikipedia.org/wiki/Hamming_weight More...
 
static int NumberOfSetBits (uint i)
 32 bit implementation of the Hamming weight https://en.wikipedia.org/wiki/Hamming_weight More...
 

Member Function Documentation

◆ NumberOfSetBits() [1/2]

static int Megapop.MegaCore.BitMath.NumberOfSetBits ( uint  i)
inlinestatic

32 bit implementation of the Hamming weight https://en.wikipedia.org/wiki/Hamming_weight

◆ NumberOfSetBits() [2/2]

static int Megapop.MegaCore.BitMath.NumberOfSetBits ( ulong  i)
inlinestatic

64 bit implementation of the Hamming weight https://en.wikipedia.org/wiki/Hamming_weight


The documentation for this class was generated from the following file: