1 #ifndef DataFormats_HcalRecHit_CaloRecHitAuxSetter_h_ 2 #define DataFormats_HcalRecHit_CaloRecHitAuxSetter_h_ 21 *u &= ~(1
U << bitnum);
33 *u &= ~(1
U << bitnum);
37 constexpr inline bool getBit(
const uint32_t u,
const unsigned bitnum) {
return u & (1
U << bitnum); }
40 #endif // DataFormats_HcalRecHit_CaloRecHitAuxSetter_h_
constexpr void setBit(uint32_t *u, const unsigned bitnum, const bool b)
constexpr void orBit(uint32_t *u, const unsigned bitnum, const bool b)
constexpr void setField(uint32_t *u, const unsigned mask, const unsigned offset, const unsigned value)
constexpr void andBit(uint32_t *u, const unsigned bitnum, const bool b)
constexpr unsigned getField(const uint32_t u, const unsigned mask, const unsigned offset)
constexpr bool getBit(const uint32_t u, const unsigned bitnum)