|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Header file containing bitwise utility functions. More...
Namespaces | |
| axom | |
| axom::utilities | |
Functions | |
| AXOM_HOST_DEVICE int | axom::utilities::countr_zero (std::uint64_t word) noexcept |
| Counts the number of trailing zeros in word. More... | |
| AXOM_HOST_DEVICE int | axom::utilities::popcount (std::uint64_t word) noexcept |
| Counts the number of set bits in word. More... | |
| AXOM_HOST_DEVICE std::int32_t | axom::utilities::countl_zero (std::int32_t word) noexcept |
| Counts the number of leading zeros in word. More... | |
| template<typename FlagType , typename BitType > | |
| constexpr AXOM_HOST_DEVICE bool | axom::utilities::bitIsSet (FlagType flags, BitType bit) |
| Determine whether the bit is set in flags. More... | |
| template<typename FlagType , typename BitType > | |
| constexpr AXOM_HOST_DEVICE void | axom::utilities::setBit (FlagType &flags, BitType bit, bool value=true) |
| Set the bit in flags. More... | |
| template<typename FlagType , typename BitType > | |
| constexpr AXOM_HOST_DEVICE void | axom::utilities::setBitOn (FlagType &flags, BitType bit) |
| Set the bit in flags. More... | |
Header file containing bitwise utility functions.