22 SEQAN3_DEPRECATED_HEADER(
"This header is deprecated and will be removed in SeqAn-3.1.0; Please #include <seqan3/std/bit> XOR <seqan3/utility/detail/bits_of.hpp> XOR <seqan3/utility/detail/to_little_endian.hpp> instead.")
24 #ifdef SEQAN3_DEPRECATED_310
25 namespace seqan3::detail
33 template <
typename type_t>
93 template <std::
unsigned_
integral
unsigned_t>
126 template <std::
unsigned_
integral
unsigned_t>
160 template <std::
unsigned_
integral
unsigned_t>
194 template <std::
unsigned_
integral
unsigned_t>
Provides utility functions for bit twiddling.
constexpr bool has_single_bit(T x) noexcept
Checks if x is an integral power of two.
Definition: bit:122
constexpr T bit_ceil(T x) noexcept
Calculates the smallest integral power of two that is not smaller than x.
Definition: bit:133
constexpr int popcount(T x) noexcept
Returns the number of 1 bits in the value of x.
Definition: bit:216
constexpr T bit_width(T x) noexcept
If x is not zero, calculates the number of bits needed to store the value x, that is,...
Definition: bit:154
constexpr int countl_zero(T x) noexcept
Returns the number of consecutive 0 bits in the value of x, starting from the most significant bit ("...
Definition: bit:181
constexpr int countr_zero(T x) noexcept
Returns the number of consecutive 0 bits in the value of x, starting from the least significant bit (...
Definition: bit:199
Provides utility functions for bit twiddling.