Branchless: Introduce TrueMask and FalseMask constants.

This commit is contained in:
hashlag
2026-08-30 01:48:58 +03:00
parent 1386caba9f
commit 72e4803939
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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
{