26 template<
typename T, u
int S, u
int N,
typename U>
static inline T
Extract(U v)
30 assert_tcompile(S + N <=
sizeof(U) * 8);
32 U masked =
GB(v, S, N);
static bool IsInsideMM(const T x, const uint min, const uint max)
Checks if a value is in an interval.
Functions related to bit mathematics.
static T Extract(U v)
Extracts a given type from a value.
Type (helpers) for enums.
Informative template class exposing basic enumeration properties used by several other templates belo...
static uint GB(const T x, const uint8 s, const uint8 n)
Fetch n bits from x, started at bit s.