254[[nodiscard]]
constexpr std::pair< std::uint32_t , std::uint32_t >
279#include "ADS/combinatorial/impl/Bitwise.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
constexpr Word interleave(std::uint32_t x, std::uint32_t y)
the Morton code of , the bits of in the even places and those of in the odd ones
constexpr Word reverseBits(Word x)
the bits of in reverse order
constexpr Word gray(Word x)
the Gray code of
constexpr int sidewaysSum(Word x)
the number of 1 bits of ,
constexpr int ruler(Word x)
the number of trailing zeros of ,
constexpr std::pair< std::uint32_t, std::uint32_t > deinterleave(Word z)
the of the Morton code
constexpr Word smearRight(Word x)
with the 0 bits below its rightmost 1 set, 0 if
constexpr Word nextSameWeight(Word x)
the next larger word with as many 1 bits as
constexpr bool hasZeroByte(Word x)
whether one of the 8 bytes of is 0
constexpr Word rightmostOne(Word x)
the rightmost 1 of alone, 0 if
constexpr int lambda(Word x)
the place of the leading 1 of ,
constexpr Word grayInverse(Word g)
the whose Gray code is
std::uint64_t Word
a word of 64 bits
Definition Bitwise.h:73