![]() |
|
|||
File indexing completed on 2024-04-06 12:20:26
0001 #ifndef L1Trigger_L1TCommon_BitShift_h 0002 #define L1Trigger_L1TCommon_BitShift_h 0003 0004 namespace l1t { 0005 0006 inline int bitShift(int num, int bits) { 0007 if (num < 0) { 0008 return -1 * ((-1 * num) << bits); 0009 } else { 0010 return (num << bits); 0011 } 0012 } 0013 0014 } // namespace l1t 0015 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |