Nebula
|
Implements helper functions for checking bits.
#include "core/types.h"
Go to the source code of this file.
Namespaces | |
namespace | Util |
A pinned array is an array which manages its own virtual memory. | |
Functions | |
constexpr uint64_t | Util::SetBit (uint64_t mask, uint8_t bit) |
constexpr bool | Util::HasBit (uint64_t mask, uint8_t bit) |
constexpr uint32_t | Util::SetBit (uint32_t mask, uint8_t bit) |
constexpr bool | Util::HasBit (uint32_t mask, uint8_t bit) |
constexpr uint16_t | Util::SetBit (uint16_t mask, uint8_t bit) |
constexpr bool | Util::HasBit (uint16_t mask, uint8_t bit) |
constexpr int64_t | Util::SetBit (int64_t mask, uint8_t bit) |
constexpr bool | Util::HasBit (int64_t mask, uint8_t bit) |
constexpr int32_t | Util::SetBit (int32_t mask, uint8_t bit) |
constexpr bool | Util::HasBit (int32_t mask, uint8_t bit) |
constexpr int16_t | Util::SetBit (int16_t mask, uint8_t bit) |
constexpr bool | Util::HasBit (int16_t mask, uint8_t bit) |
constexpr uint32_t | Util::CountBits (uint32_t i) |
template<typename T> | |
void | Util::HashCombine (uint32_t &s, const T &v) |
Combine hashes. | |
uint | Util::PopCnt (uint value) |
uint64_t | Util::PopCnt (uint64_t value) |
uint | Util::FirstOne (uint value) |
uint | Util::FirstOne (uint64_t value) |
uint | Util::LastOne (uint value) |
uint | Util::LastOne (uint64_t value) |
uint | Util::Lsb (uint value, byte bit) |
uint | Util::BitmaskConvert (uint mask, const uint *table, const uint numEntries=0xFFFFFFFF) |