CMS 3D CMS Logo

BitShift.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TCommon_BitShift_h
2 #define L1Trigger_L1TCommon_BitShift_h
3 
4 namespace l1t {
5 
6  inline int bitShift(int num, int bits) {
7  if (num < 0) {
8  return -1 * ((-1 * num) << bits);
9  } else {
10  return (num << bits);
11  }
12  }
13 
14 } // namespace l1t
15 #endif
constexpr uint32_t bits
Definition: gpuClustering.h:23
delete x;
Definition: CaloConfig.h:22
int bitShift(int num, int bits)
Definition: BitShift.h:6