Bits.h
Go to the documentation of this file.
1 #ifndef WIRECELL_BITS
2 #define WIRECELL_BITS
3 
4 namespace WireCell{
5  namespace Bits {
6  // Shift the value to the right for "n" bits and replace the first "n" bits by "filling"
7  int shift_right(int value, int n, int filling, int totalBit);
8  // Get the lowest "n" bits ...
9  int lowest_bits(int value, int n);
10  }
11 }
12 
13 #endif
Definition: Main.h:22
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225
int lowest_bits(int value, int n)
Definition: Bits.cxx:9
std::size_t n
Definition: format.h:3399
int shift_right(int value, int n, int filling, int totalBit)
Definition: Bits.cxx:4