32 #ifndef __ReinterpretCtr_dot_hpp__
33 #define __ReinterpretCtr_dot_hpp__
53 template <
typename ToType,
typename CBRNG>
57 typedef typename CBRNG::ctr_type
bctype;
59 R123_STATIC_ASSERT(
sizeof(ToType) ==
sizeof(
bctype) &&
sizeof(
typename bctype::value_type) != 16,
60 "ReinterpretCtr: sizeof(ToType) is not the same as sizeof(CBRNG::ctr_type) or CBRNG::ctr_type::value_type looks like it might be __m128i");
80 std::memcpy(&bc, &c,
sizeof(c));
83 std::memcpy(&c, &bc,
sizeof(bc));
Definition: ReinterpretCtr.hpp:54
CBRNG::ukey_type ukey_type
Definition: ReinterpretCtr.hpp:58
ctr_type operator()(ctr_type c, key_type k)
Definition: ReinterpretCtr.hpp:78
CBRNG::ctr_type bctype
Definition: ReinterpretCtr.hpp:57
CBRNG::key_type key_type
Definition: ReinterpretCtr.hpp:56
ToType ctr_type
Definition: ReinterpretCtr.hpp:55