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. | |
|
|
Definition at line 24 of file binUtils.C. Referenced by 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 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(). |
1.3.9.1