#include <vector>
#include <cassert>
#include "binUtils.h"
Go to the source code of this file.
Namespaces | |
namespace | binOp |
Functions | |
unsigned int | binLength (unsigned int num) |
unsigned int | binToDec (unsigned int *numBin, unsigned int binLen) |
unsigned int | fastLog2 (unsigned int num) |
int | getNextHighestPowerOfTwo (unsigned int n) |
int | getPrevHighestPowerOfTwo (unsigned int n) |
bool | isPowerOfTwo (unsigned int n) |
int | toBin (unsigned int num, unsigned int binLen, std::vector< bool > &numBin) |
Converts a decimal number to binary. |
Hari Sundar, hsundar@gmail.com
Definition in file binUtils.C.
|
Definition at line 24 of file binUtils.C. Referenced by binOp::fastLog2(), ot::TreeNode::getMorton(), and ot::getNCA(). |
|
Definition at line 47 of file binUtils.C. |
|
return log to base 2 of num Definition at line 15 of file binUtils.C. References binOp::binLength(). Referenced by ot::regularGrid2Octree(). |
|
Definition at line 61 of file binUtils.C. |
|
Definition at line 75 of file binUtils.C. Referenced by par::Par_bitonic_merge_incr(), par::splitCommBinary(), and par::splitCommBinaryNoFlip(). |
|
Definition at line 56 of file binUtils.C. Referenced by ot::regularGrid2Octree(). |
|
Converts a decimal number to binary.
Definition at line 33 of file binUtils.C. Referenced by ot::TreeNode::getMorton(). |