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
MaskBackend
{
19
static
const
uint64_t
VALUE
= (1ul << N) - 1ul;
20
};
21
41
template
<
short
N>
42
constexpr
uint64_t MASK =
MaskBackend<N>::VALUE
;
43
44
}
// namespace utility
45
}
// namespace packing
46
47
#endif
// PACKING_UTILITY_MASK_H_
packing::utility::MaskBackend
mask_backend
Definition
Mask.h:17
packing::utility::MaskBackend::VALUE
static const uint64_t VALUE
value of mask
Definition
Mask.h:19
Generated by
1.12.0