chsvlib
chsv helper source code

◆ inverse_bits()

constexpr unsigned Chusov::Math::inverse_bits ( unsigned  val)
constexpr

Inverses the specified bits of an integral parameter and returns the resulting value.

Template Parameters
IndicesOfBitsis a parameter pack of indices to be inverted in the input value.
Parameters
valis a value composed of bits to be inverted.
Returns
The resulting value.