Branchless: Introduce TrueMask and FalseMask constants.
This commit is contained in:
1 parent
1386caba9f
commit
72e4803939
2 files changed
+5
-2
No files matched your search
@@ -10,6 +10,9 @@ namespace Chaos::Service
|
||||
|
||||
struct Branchless
|
||||
{
|
||||
static constexpr uint8_t FalseMask = 0x00;
|
||||
static constexpr uint8_t TrueMask = 0xFF;
|
||||
|
||||
template<typename OutUInt, typename InUInt>
|
||||
static constexpr OutUInt MsbMask(InUInt in) noexcept
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user