Skip to content

Commit

Permalink
Revert "Micro-opt. / type safety in pushApartBits()"
Browse files Browse the repository at this point in the history
This reverts commit 91e047f.
  • Loading branch information
WrathfulSpatula committed Feb 15, 2025
1 parent 4d0962b commit 7811d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ bitCapInt pushApartBits(const bitCapInt& perm, const std::vector<bitCapInt>& ski

bitCapInt iHigh = perm;
bitCapInt i = ZERO_BCI;
for (const bitCapInt skipPower : skipPowers) {
bitCapInt iLow = iHigh & (skipPower - ONE_BCI);
for (bitCapIntOcl p = 0U; p < skipPowers.size(); ++p) {
bitCapInt iLow = iHigh & (skipPowers[p] - ONE_BCI);
bi_or_ip(&i, iLow);
iHigh = (iHigh ^ iLow) << 1U;
}
Expand Down

0 comments on commit 7811d90

Please sign in to comment.