#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/spin/MortonIndex.hpp>
|
| static int | maxSetBit (CoordType x) |
| | Finds the index of the maximum set bit (MSB) in an integral type. More...
|
| |
◆ expandBits()
template<typename CoordType , typename MortonIndexType , typename Derived >
Expands bits in bitwise representation of an integral type and zero-fills the holes.
- Parameters
-
| [in] | x | The integer type that we are expanding |
- Returns
- A zero-filled expanded MortonIndex In dimension D, it adds (D-1) zeros between each bit, so, e.g. in 2D, 6 == 0b0110 becomes 0b*0*1*1*0 == 0b00010100 == 20
◆ contractBits()
template<typename CoordType , typename MortonIndexType , typename Derived >
Contracts bits in bitwise representation of x.
- Parameters
-
| [in] | x | The Morton index that we are contracting |
- Returns
- A contracted MortonIndex
In dimension D, it retains every (D-1) \(^th\) bit, so, e.g. in 2D, 20 = 0b00010100 == 0b*0*1*1*0 becomes 0b0110 = 6
◆ maxSetBit()
template<typename CoordType , typename MortonIndexType , typename Derived >
Finds the index of the maximum set bit (MSB) in an integral type.
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/spin/MortonIndex.hpp