LDMX Software
Packing
include
Packing
Utility
Mask.h
1
#ifndef PACKING_UTILITY_MASK_H_
2
#define PACKING_UTILITY_MASK_H_
3
4
namespace
packing {
5
namespace
utility {
6
16
template
<
short
N>
17
struct
mask_backend
{
19
static
const
uint64_t
value
= (1ul << N) - 1ul;
20
};
21
41
template
<
short
N>
42
constexpr
uint64_t
mask
=
mask_backend<N>::value
;
43
44
}
// namespace utility
45
}
// namespace packing
46
47
#endif
// PACKING_UTILITY_MASK_H_
mask
Definition
QIEStream.h:9
packing::utility::mask_backend
mask_backend
Definition
Mask.h:17
packing::utility::mask_backend::value
static const uint64_t value
value of mask
Definition
Mask.h:19
Generated by
1.9.8