A set of efficient functions that use binary operations to perform some small computations. More...
#include <vector>
Go to the source code of this file.
Namespaces | |
binOp | |
A set of functions for fast binary operations. | |
Functions | |
bool | binOp::isPowerOfTwo (unsigned int n) |
unsigned int | binOp::binLength (unsigned int num) |
unsigned int | binOp::fastLog2 (unsigned int num) |
int | binOp::toBin (unsigned int dec, unsigned int binLen, std::vector< bool > &result) |
Converts a decimal number to binary. More... | |
unsigned int | binOp::binToDec (unsigned int *numBin, unsigned int binLen) |
int | binOp::getNextHighestPowerOfTwo (unsigned int n) |
int | binOp::getPrevHighestPowerOfTwo (unsigned int n) |
unsigned int | binOp::reversibleHash (unsigned int x) |
A set of efficient functions that use binary operations to perform some small computations.
Definition in file binUtils.h.