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
+2 -2
View File
@@ -52,8 +52,8 @@ public:
uint8_t padSizeIncrement = 1;
uint8_t padSize = 0;
uint8_t encountered0x80 = 0x00;
uint8_t onlyZerosPast0x80 = 0xFF;
uint8_t encountered0x80 = Branchless::FalseMask;
uint8_t onlyZerosPast0x80 = Branchless::TrueMask;
InputIt it = end;
while (it != begin && padSize < std::numeric_limits<uint8_t>::max())