Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
util
inc
WireCellUtil
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
WireCell
Definition:
Main.h:22
value
const GenericPointer< typename T::ValueType > T2 value
Definition:
pointer.h:1225
WireCell::Bits::lowest_bits
int lowest_bits(int value, int n)
Definition:
Bits.cxx:9
n
std::size_t n
Definition:
format.h:3399
WireCell::Bits::shift_right
int shift_right(int value, int n, int filling, int totalBit)
Definition:
Bits.cxx:4
Generated by
1.8.11