LDMX Software
Packing
include
Packing
Utility
Mask.h
1
#ifndef PACKING_UTILITY_MASK_H_
2
#define PACKING_UTILITY_MASK_H_
3
4
#include <cstdint>
5
6
namespace
packing {
7
namespace
utility {
8
18
template
<
short
N>
19
struct
MaskBackend
{
21
static
const
uint64_t
VALUE
= (1ul << N) - 1ul;
22
};
23
43
template
<
short
N>
44
constexpr
uint64_t MASK =
MaskBackend<N>::VALUE
;
45
46
}
// namespace utility
47
}
// namespace packing
48
49
#endif
// PACKING_UTILITY_MASK_H_
packing::utility::MaskBackend
mask_backend
Definition
Mask.h:19
packing::utility::MaskBackend::VALUE
static const uint64_t VALUE
value of mask
Definition
Mask.h:21
Generated by
1.12.0