Skip to content

Commit

Permalink
Style (inconsequential)
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Oct 26, 2024
1 parent 68c7bff commit 849ea96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/common/qrack_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ inline bitLenInt log2Ocl(bitCapIntOcl n)
#else
return (bitLenInt)(bitsInByte * sizeof(unsigned long long) - __builtin_clzll((unsigned long long)n) - 1U);
#endif
#elif CPP_STD >= 20
return std::bit_width(n) - 1U;
#else
bitLenInt pow = 0U;
bitCapIntOcl p = n >> 1U;
Expand Down
4 changes: 2 additions & 2 deletions src/common/parallel_for.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ namespace Qrack {
ParallelFor::ParallelFor()
#if ENABLE_ENV_VARS
: pStride(getenv("QRACK_PSTRIDEPOW")
? ((bitCapIntOcl)1U << (bitCapIntOcl)std::stoi(std::string(getenv("QRACK_PSTRIDEPOW"))))
: ((bitCapIntOcl)1U << (bitLenInt)PSTRIDEPOW))
? pow2Ocl((bitLenInt)std::stoi(std::string(getenv("QRACK_PSTRIDEPOW"))))
: pow2Ocl((bitLenInt)PSTRIDEPOW))
#else
: pStride((bitCapIntOcl)ONE_BCI << PSTRIDEPOW)
#endif
Expand Down

0 comments on commit 849ea96

Please sign in to comment.