#include <int_utils.h>
|
static void | Swap (I &a, I &b) |
|
static constexpr bool | IsZero (I a) |
|
static constexpr I | Mask (I val) |
|
static constexpr I | Shift (I val, int bits) |
|
static constexpr I | UnsafeShift (I val, int bits) |
|
template<int Offset, int Count> |
static constexpr int | MidBits (I val) |
|
template<int Count> |
static constexpr int | TopBits (I val) |
|
static constexpr I | CondXorWith (I val, bool cond, I v) |
|
template<I MOD> |
static constexpr I | CondXorWith (I val, bool cond) |
|
static int | Bits (I val, int max) |
|
|
static constexpr int | SIZE = BITS |
|
|
static constexpr I | MASK = Mask<BITS, I>() |
|
template<typename I, int BITS>
class BitsInt< I, BITS >
Definition at line 160 of file int_utils.h.
◆ Repr
template<typename I , int BITS>
◆ Bits()
template<typename I , int BITS>
static int BitsInt< I, BITS >::Bits |
( |
I |
val, |
|
|
int |
max |
|
) |
| |
|
inlinestatic |
◆ CondXorWith() [1/2]
template<typename I , int BITS>
template<I MOD>
static constexpr I BitsInt< I, BITS >::CondXorWith |
( |
I |
val, |
|
|
bool |
cond |
|
) |
| |
|
inlinestaticconstexpr |
◆ CondXorWith() [2/2]
template<typename I , int BITS>
static constexpr I BitsInt< I, BITS >::CondXorWith |
( |
I |
val, |
|
|
bool |
cond, |
|
|
I |
v |
|
) |
| |
|
inlinestaticconstexpr |
◆ IsZero()
template<typename I , int BITS>
static constexpr bool BitsInt< I, BITS >::IsZero |
( |
I |
a | ) |
|
|
inlinestaticconstexpr |
◆ Mask()
template<typename I , int BITS>
static constexpr I BitsInt< I, BITS >::Mask |
( |
I |
val | ) |
|
|
inlinestaticconstexpr |
◆ MidBits()
template<typename I , int BITS>
template<int Offset, int Count>
static constexpr int BitsInt< I, BITS >::MidBits |
( |
I |
val | ) |
|
|
inlinestaticconstexpr |
◆ Shift()
template<typename I , int BITS>
static constexpr I BitsInt< I, BITS >::Shift |
( |
I |
val, |
|
|
int |
bits |
|
) |
| |
|
inlinestaticconstexpr |
◆ Swap()
template<typename I , int BITS>
static void BitsInt< I, BITS >::Swap |
( |
I & |
a, |
|
|
I & |
b |
|
) |
| |
|
inlinestatic |
◆ TopBits()
template<typename I , int BITS>
template<int Count>
static constexpr int BitsInt< I, BITS >::TopBits |
( |
I |
val | ) |
|
|
inlinestaticconstexpr |
◆ UnsafeShift()
template<typename I , int BITS>
static constexpr I BitsInt< I, BITS >::UnsafeShift |
( |
I |
val, |
|
|
int |
bits |
|
) |
| |
|
inlinestaticconstexpr |
◆ MASK
template<typename I , int BITS>
◆ SIZE
template<typename I , int BITS>
constexpr int BitsInt< I, BITS >::SIZE = BITS |
|
staticconstexpr |
The documentation for this class was generated from the following file: