Regina Calculation Engine
|
Contains implementation details for BitManipulator where we optimise according to the size of the underlying data type. More...
#include <utilities/bitmanip.h>
Public Types | |
enum | { specialised = 0 } |
Static Public Member Functions | |
static int | bits (T x) |
Returns the number of bits that are set to 1 in the given integer. More... | |
Contains implementation details for BitManipulator where we optimise according to the size of the underlying data type.
End users should use the BitManipulator class, not this class.
T | an unsigned integral numeric type, which we treat as a sequence of true and/or false bits. |
size | the number of bytes of T to examine. Any higher-order bits will be ignored by the implementations in this class. |