From 4da2a016144b6edc1c27e6808cdbf7f48aeb4684 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 26 Jun 2024 22:14:05 -0700 Subject: [PATCH] Use single &, to show branch-free intent --- ConflictSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 34e3073..fd292c4 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1730,7 +1730,7 @@ bool checkMaxBetweenExclusive(Node *n, int begin, int end, if (self->maxOfMax[i] > readVersion) { for (int j = 0; j < Node48::kMaxOfMaxPageSize; ++j) { int k = (i << Node48::kMaxOfMaxShift) + j; - result &= !(self->children[k].childMaxVersion > readVersion && + result &= !((self->children[k].childMaxVersion > readVersion) & inBounds(self->reverseIndex[k])); } }