COMBINATORIAL_BLAS  1.6
binUtils.h File Reference
#include <vector>
Include dependency graph for binUtils.h:

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)