COMBINATORIAL_BLAS  1.6
binUtils.cpp File Reference
#include <vector>
#include <cassert>
#include "binUtils.h"

Go to the source code of this file.

Namespaces

 binOp
 A set of functions for fast binary operations.
 

Functions

unsigned int binOp::fastLog2 (unsigned int num)
 
unsigned int binOp::binLength (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)
 
bool binOp::isPowerOfTwo (unsigned int n)
 
int binOp::getNextHighestPowerOfTwo (unsigned int n)
 
int binOp::getPrevHighestPowerOfTwo (unsigned int n)
 
unsigned int binOp::reversibleHash (unsigned int x)