#include <next.hh>
Static Public Attributes | |
static const unsigned int | i = BinInfo<M>::bloc0 |
static const unsigned int | j = BinInfo<M>::bloc1 |
static const unsigned int | tmp1 = M | (1<<(i+j)) |
static const unsigned int | tmp2 = tmp1 ^ IntervalMask<i,j>::val |
static const unsigned int | val = tmp2 | IntervalMask<0,j-1>::val |
Exo 3 Next.
Calcule l'entier suivant avec le même nombre de bits à 1. Pour clarifier la correction, on distingue les étapes données dans l'énoncé
M | l'entier à partir duquel on calcule le suivant |
Definition at line 23 of file next.hh.
const unsigned int mask::Next< M >::i = BinInfo<M>::bloc0 [static] |
const unsigned int mask::Next< M >::j = BinInfo<M>::bloc1 [static] |
const unsigned int mask::Next< M >::tmp1 = M | (1<<(i+j)) [static] |
const unsigned int mask::Next< M >::tmp2 = tmp1 ^ IntervalMask<i,j>::val [static] |
const unsigned int mask::Next< M >::val = tmp2 | IntervalMask<0,j-1>::val [static] |