|
RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
|
#include <BitMask.hpp>
Static Public Member Functions | |
| template<typename T > | |
| static constexpr RAJA_HOST_DEVICE T | maskValue (T input) |
| template<typename T > | |
| static constexpr RAJA_HOST_DEVICE T | getOuter (T input) |
| template<typename T > | |
| static constexpr RAJA_HOST_DEVICE T | maskOuter (T input) |
Static Public Attributes | |
| static constexpr int | shift = Shift |
| static constexpr int | width = Width |
| static constexpr int | max_input_size = 1 << (Shift + Width) |
| static constexpr int | max_masked_size = 1 << Width |
| static constexpr int | max_shifted_size = 1 << Shift |
A bit-masking operator
Provides an operator that shifts and masks in input value to extract a contiguous set of bits.
result = (input >> Shift) & (Mask)
Where mask is (1<<Width)-1, or the number of bits defined by Width.
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |