codec/include/nil/crypto3/detail/reverser.hpp
Go to the documentation of this file.
421 template<typename InputEndianness, typename OutputEndianness, int UnitBits, typename Enable = void>
439 typename std::enable_if<is_same_unit<InputEndianness, OutputEndianness, UnitBits>::value>::type> {
void reverse_bits(UnitType &unit)
The functions listed below deal with bit reversal in a unit.
Definition: block/include/nil/crypto3/detail/reverser.hpp:132
void reverse_byte(byte_type &b)
This function reverses bit order in the byte b depending on the machine word size....
Definition: block/include/nil/crypto3/detail/reverser.hpp:63
T unbounded_shr(T x)
Definition: algebra/include/nil/crypto3/detail/unbounded_shift.hpp:64
T unbounded_shl(T x)
Definition: algebra/include/nil/crypto3/detail/unbounded_shift.hpp:59
boost::uint_t< CHAR_BIT >::exact byte_type
Definition: block/include/nil/crypto3/detail/reverser.hpp:49
typename std::iterator_traits< Iterator >::value_type ValueType
Definition: algebra/include/nil/crypto3/detail/make_array.hpp:50
Definition: pair.hpp:31
static void reverse(typename boost::uint_t< UnitBits >::exact &, typename boost::uint_t< UnitBits >::exact &)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:105
bit_in_unit_byte_reverser transforms the sequence of bits in each byte of the input unit into reverse...
Definition: block/include/nil/crypto3/detail/reverser.hpp:87
static void reverse(UnitType &in, UnitType &out)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:93
boost::uint_t< UnitBits >::exact UnitType
Definition: codec/include/nil/crypto3/detail/reverser.hpp:91
BOOST_STATIC_ASSERT(!(UnitBits % CHAR_BIT))
bit_in_unit_byte_reverser< UnitBits, k+CHAR_BIT > next_type
Definition: codec/include/nil/crypto3/detail/reverser.hpp:90
static void reverse(ValueType &, ValueType &)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:191
bit_in_unit_reverser transforms the sequence of bits in each unit of the input value into reversed se...
Definition: block/include/nil/crypto3/detail/reverser.hpp:171
static void reverse(ValueType &in, ValueType &out)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:178
bit_in_unit_reverser< InputBits, UnitBits, k+UnitBits > next_type
Definition: codec/include/nil/crypto3/detail/reverser.hpp:174
boost::uint_t< UnitBits >::exact UnitType
Definition: codec/include/nil/crypto3/detail/reverser.hpp:175
BOOST_STATIC_ASSERT(!(InputBits % UnitBits) &&!(UnitBits % CHAR_BIT))
static ValueType reverse(ValueType const &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:309
static void reverse(ValueType &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:302
static ValueType reverse(ValueType const &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:284
static void reverse(ValueType &)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:280
static void reverse(ValueType &, ValueType &)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:352
byte_in_unit_reverser transforms the sequence of bytes in each unit of the input value into reversed ...
Definition: block/include/nil/crypto3/detail/reverser.hpp:332
static void reverse(ValueType &in, ValueType &out)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:339
boost::uint_t< UnitBits >::exact UnitType
Definition: codec/include/nil/crypto3/detail/reverser.hpp:336
BOOST_STATIC_ASSERT(!(InputBits % UnitBits) &&!(UnitBits % CHAR_BIT))
byte_in_unit_reverser< InputBits, UnitBits, k+UnitBits > next_type
Definition: codec/include/nil/crypto3/detail/reverser.hpp:335
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:212
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:373
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:228
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:389
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:245
constexpr static const bool value
Definition: block/include/nil/crypto3/detail/reverser.hpp:406
static void reverse(ValueType &)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:441
static ValueType reverse(ValueType const &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:445
static ValueType reverse(ValueType const &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:505
static void reverse(ValueType &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:497
static void reverse(ValueType &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:468
static ValueType reverse(ValueType const &val)
Definition: codec/include/nil/crypto3/detail/reverser.hpp:473