COMBINATORIAL_BLAS  1.6
binUtils.h File Reference

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)
 

Detailed Description

A set of efficient functions that use binary operations to perform some small computations.

Author
Hari Sundar, hsund.nosp@m.ar@g.nosp@m.mail..nosp@m.com

Definition in file binUtils.h.